MODFLOW 6  version 6.5.0.dev2
MODFLOW 6 Code Documentation
memorymanagermodule::mem_setptr Interface Reference
Collaboration diagram for memorymanagermodule::mem_setptr:
Collaboration graph

Private Member Functions

subroutine setptr_logical (sclr, name, mem_path)
 Set pointer to a logical scalar. More...
 
subroutine setptr_int (sclr, name, mem_path)
 Set pointer to integer scalar. More...
 
subroutine setptr_int1d (aint, name, mem_path)
 Set pointer to 1d integer array. More...
 
subroutine setptr_int2d (aint, name, mem_path)
 Set pointer to 2d integer array. More...
 
subroutine setptr_int3d (aint, name, mem_path)
 Set pointer to 3d integer array. More...
 
subroutine setptr_dbl (sclr, name, mem_path)
 Set pointer to a real scalar. More...
 
subroutine setptr_dbl1d (adbl, name, mem_path)
 Set pointer to a 1d real array. More...
 
subroutine setptr_dbl2d (adbl, name, mem_path)
 Set pointer to a 2d real array. More...
 
subroutine setptr_dbl3d (adbl, name, mem_path)
 Set pointer to a 3d real array. More...
 
subroutine setptr_str (asrt, name, mem_path)
 Set pointer to a string (scalar) More...
 
subroutine setptr_str1d (astr1d, name, mem_path)
 Set pointer to a fixed-length string array. More...
 
subroutine setptr_charstr1d (acharstr1d, name, mem_path)
 Set pointer to an array of CharacterStringType. More...
 

Detailed Description

Definition at line 88 of file MemoryManager.f90.

Member Function/Subroutine Documentation

◆ setptr_charstr1d()

subroutine memorymanagermodule::mem_setptr::setptr_charstr1d ( type(characterstringtype), dimension(:), intent(inout), pointer, contiguous  acharstr1d,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]acharstr1dthe reallocated charstring array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1731 of file MemoryManager.f90.

1732  type(CharacterStringType), dimension(:), pointer, contiguous, &
1733  intent(inout) :: acharstr1d !< the reallocated charstring array
1734  character(len=*), intent(in) :: name !< variable name
1735  character(len=*), intent(in) :: mem_path !< path where variable is stored
1736  ! -- local
1737  type(MemoryType), pointer :: mt
1738  logical(LGP) :: found
1739  ! -- code
1740  call get_from_memorylist(name, mem_path, mt, found)
1741  acharstr1d => mt%acharstr1d
1742  !
1743  ! -- return
1744  return
Here is the call graph for this function:

◆ setptr_dbl()

subroutine memorymanagermodule::mem_setptr::setptr_dbl ( real(dp), intent(inout), pointer  sclr,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]sclrpointer to a real scalar
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1628 of file MemoryManager.f90.

1629  real(DP), pointer, intent(inout) :: sclr !< pointer to a real scalar
1630  character(len=*), intent(in) :: name !< variable name
1631  character(len=*), intent(in) :: mem_path !< path where variable is stored
1632  ! -- local
1633  type(MemoryType), pointer :: mt
1634  logical(LGP) :: found
1635  ! -- code
1636  call get_from_memorylist(name, mem_path, mt, found)
1637  sclr => mt%dblsclr
1638  !
1639  ! -- return
1640  return
Here is the call graph for this function:

◆ setptr_dbl1d()

subroutine memorymanagermodule::mem_setptr::setptr_dbl1d ( real(dp), dimension(:), intent(inout), pointer, contiguous  adbl,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]adblpointer to 1d real array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1645 of file MemoryManager.f90.

1646  real(DP), dimension(:), pointer, contiguous, intent(inout) :: adbl !< pointer to 1d real array
1647  character(len=*), intent(in) :: name !< variable name
1648  character(len=*), intent(in) :: mem_path !< path where variable is stored
1649  ! -- local
1650  type(MemoryType), pointer :: mt
1651  logical(LGP) :: found
1652  ! -- code
1653  call get_from_memorylist(name, mem_path, mt, found)
1654  adbl => mt%adbl1d
1655  !
1656  ! -- return
1657  return
Here is the call graph for this function:

◆ setptr_dbl2d()

subroutine memorymanagermodule::mem_setptr::setptr_dbl2d ( real(dp), dimension(:, :), intent(inout), pointer, contiguous  adbl,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]adblpointer to 2d real array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1662 of file MemoryManager.f90.

1663  real(DP), dimension(:, :), pointer, contiguous, intent(inout) :: adbl !< pointer to 2d real array
1664  character(len=*), intent(in) :: name !< variable name
1665  character(len=*), intent(in) :: mem_path !< path where variable is stored
1666  ! -- local
1667  type(MemoryType), pointer :: mt
1668  logical(LGP) :: found
1669  ! -- code
1670  call get_from_memorylist(name, mem_path, mt, found)
1671  adbl => mt%adbl2d
1672  !
1673  ! -- return
1674  return
Here is the call graph for this function:

◆ setptr_dbl3d()

subroutine memorymanagermodule::mem_setptr::setptr_dbl3d ( real(dp), dimension(:, :, :), intent(inout), pointer, contiguous  adbl,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]adblpointer to 3d real array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1679 of file MemoryManager.f90.

1680  real(DP), dimension(:, :, :), pointer, contiguous, intent(inout) :: adbl !< pointer to 3d real array
1681  character(len=*), intent(in) :: name !< variable name
1682  character(len=*), intent(in) :: mem_path !< path where variable is stored
1683  ! -- local
1684  type(MemoryType), pointer :: mt
1685  logical(LGP) :: found
1686  ! -- code
1687  call get_from_memorylist(name, mem_path, mt, found)
1688  adbl => mt%adbl3d
1689  !
1690  ! -- return
1691  return
Here is the call graph for this function:

◆ setptr_int()

subroutine memorymanagermodule::mem_setptr::setptr_int ( integer(i4b), intent(inout), pointer  sclr,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]sclrpointer to integer scalar
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1560 of file MemoryManager.f90.

1561  integer(I4B), pointer, intent(inout) :: sclr !< pointer to integer scalar
1562  character(len=*), intent(in) :: name !< variable name
1563  character(len=*), intent(in) :: mem_path !< path where variable is stored
1564  ! -- local
1565  type(MemoryType), pointer :: mt
1566  logical(LGP) :: found
1567  ! -- code
1568  call get_from_memorylist(name, mem_path, mt, found)
1569  sclr => mt%intsclr
1570  !
1571  ! -- return
1572  return
Here is the call graph for this function:

◆ setptr_int1d()

subroutine memorymanagermodule::mem_setptr::setptr_int1d ( integer(i4b), dimension(:), intent(inout), pointer, contiguous  aint,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]aintpointer to 1d integer array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1577 of file MemoryManager.f90.

1578  integer(I4B), dimension(:), pointer, contiguous, intent(inout) :: aint !< pointer to 1d integer array
1579  character(len=*), intent(in) :: name !< variable name
1580  character(len=*), intent(in) :: mem_path !< path where variable is stored
1581  ! -- local
1582  type(MemoryType), pointer :: mt
1583  logical(LGP) :: found
1584  ! -- code
1585  call get_from_memorylist(name, mem_path, mt, found)
1586  aint => mt%aint1d
1587  !
1588  ! -- return
1589  return
Here is the call graph for this function:

◆ setptr_int2d()

subroutine memorymanagermodule::mem_setptr::setptr_int2d ( integer(i4b), dimension(:, :), intent(inout), pointer, contiguous  aint,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]aintpointer to 2d integer array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1594 of file MemoryManager.f90.

1595  integer(I4B), dimension(:, :), pointer, contiguous, intent(inout) :: aint !< pointer to 2d integer array
1596  character(len=*), intent(in) :: name !< variable name
1597  character(len=*), intent(in) :: mem_path !< path where variable is stored
1598  ! -- local
1599  type(MemoryType), pointer :: mt
1600  logical(LGP) :: found
1601  ! -- code
1602  call get_from_memorylist(name, mem_path, mt, found)
1603  aint => mt%aint2d
1604  !
1605  ! -- return
1606  return
Here is the call graph for this function:

◆ setptr_int3d()

subroutine memorymanagermodule::mem_setptr::setptr_int3d ( integer(i4b), dimension(:, :, :), intent(inout), pointer, contiguous  aint,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]aintpointer to 3d integer array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1611 of file MemoryManager.f90.

1612  integer(I4B), dimension(:, :, :), pointer, contiguous, intent(inout) :: aint !< pointer to 3d integer array
1613  character(len=*), intent(in) :: name !< variable name
1614  character(len=*), intent(in) :: mem_path !< path where variable is stored
1615  ! -- local
1616  type(MemoryType), pointer :: mt
1617  logical(LGP) :: found
1618  ! -- code
1619  call get_from_memorylist(name, mem_path, mt, found)
1620  aint => mt%aint3d
1621  !
1622  ! -- return
1623  return
Here is the call graph for this function:

◆ setptr_logical()

subroutine memorymanagermodule::mem_setptr::setptr_logical ( logical(lgp), intent(inout), pointer  sclr,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]sclrpointer to logical scalar
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1543 of file MemoryManager.f90.

1544  logical(LGP), pointer, intent(inout) :: sclr !< pointer to logical scalar
1545  character(len=*), intent(in) :: name !< variable name
1546  character(len=*), intent(in) :: mem_path !< path where variable is stored
1547  ! -- local
1548  type(MemoryType), pointer :: mt
1549  logical(LGP) :: found
1550  ! -- code
1551  call get_from_memorylist(name, mem_path, mt, found)
1552  sclr => mt%logicalsclr
1553  !
1554  ! -- return
1555  return
Here is the call graph for this function:

◆ setptr_str()

subroutine memorymanagermodule::mem_setptr::setptr_str ( character(len=:), pointer  asrt,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
asrtpointer to the character string
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1696 of file MemoryManager.f90.

1697  character(len=:), pointer :: asrt !< pointer to the character string
1698  character(len=*), intent(in) :: name !< variable name
1699  character(len=*), intent(in) :: mem_path !< path where variable is stored
1700  ! -- local
1701  type(MemoryType), pointer :: mt
1702  logical(LGP) :: found
1703  ! -- code
1704  call get_from_memorylist(name, mem_path, mt, found)
1705  asrt => mt%strsclr
1706  !
1707  ! -- return
1708  return
Here is the call graph for this function:

◆ setptr_str1d()

subroutine memorymanagermodule::mem_setptr::setptr_str1d ( character(len=:), dimension(:), intent(inout), pointer, contiguous  astr1d,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]astr1dpointer to the string array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1713 of file MemoryManager.f90.

1714  character(len=:), dimension(:), &
1715  pointer, contiguous, intent(inout) :: astr1d !< pointer to the string array
1716  character(len=*), intent(in) :: name !< variable name
1717  character(len=*), intent(in) :: mem_path !< path where variable is stored
1718  ! -- local
1719  type(MemoryType), pointer :: mt
1720  logical(LGP) :: found
1721  ! -- code
1722  call get_from_memorylist(name, mem_path, mt, found)
1723  astr1d => mt%astr1d
1724  !
1725  ! -- return
1726  return
Here is the call graph for this function:

The documentation for this interface was generated from the following file: