MODFLOW 6  version 6.9.0.dev0
USGS Modular Hydrologic Model
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_logical1d (alog, name, mem_path)
 Set pointer to 1d logical array. 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 93 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 1764 of file MemoryManager.f90.

1765  type(CharacterStringType), dimension(:), pointer, contiguous, &
1766  intent(inout) :: acharstr1d !< the reallocated charstring array
1767  character(len=*), intent(in) :: name !< variable name
1768  character(len=*), intent(in) :: mem_path !< path where variable is stored
1769  ! -- local
1770  type(MemoryType), pointer :: mt
1771  logical(LGP) :: found
1772  ! -- code
1773  call get_from_memorystore(name, mem_path, mt, found)
1774  acharstr1d => mt%acharstr1d
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 1674 of file MemoryManager.f90.

1675  real(DP), pointer, intent(inout) :: sclr !< pointer to a real scalar
1676  character(len=*), intent(in) :: name !< variable name
1677  character(len=*), intent(in) :: mem_path !< path where variable is stored
1678  ! -- local
1679  type(MemoryType), pointer :: mt
1680  logical(LGP) :: found
1681  ! -- code
1682  call get_from_memorystore(name, mem_path, mt, found)
1683  sclr => mt%dblsclr
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 1688 of file MemoryManager.f90.

1689  real(DP), dimension(:), pointer, contiguous, intent(inout) :: adbl !< pointer to 1d real array
1690  character(len=*), intent(in) :: name !< variable name
1691  character(len=*), intent(in) :: mem_path !< path where variable is stored
1692  ! -- local
1693  type(MemoryType), pointer :: mt
1694  logical(LGP) :: found
1695  ! -- code
1696  call get_from_memorystore(name, mem_path, mt, found)
1697  adbl => mt%adbl1d
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 1702 of file MemoryManager.f90.

1703  real(DP), dimension(:, :), pointer, contiguous, intent(inout) :: adbl !< pointer to 2d real array
1704  character(len=*), intent(in) :: name !< variable name
1705  character(len=*), intent(in) :: mem_path !< path where variable is stored
1706  ! -- local
1707  type(MemoryType), pointer :: mt
1708  logical(LGP) :: found
1709  ! -- code
1710  call get_from_memorystore(name, mem_path, mt, found)
1711  adbl => mt%adbl2d
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 1716 of file MemoryManager.f90.

1717  real(DP), dimension(:, :, :), pointer, contiguous, intent(inout) :: adbl !< pointer to 3d real array
1718  character(len=*), intent(in) :: name !< variable name
1719  character(len=*), intent(in) :: mem_path !< path where variable is stored
1720  ! -- local
1721  type(MemoryType), pointer :: mt
1722  logical(LGP) :: found
1723  ! -- code
1724  call get_from_memorystore(name, mem_path, mt, found)
1725  adbl => mt%adbl3d
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 1604 of file MemoryManager.f90.

1605  integer(I4B), pointer, intent(inout) :: sclr !< pointer to integer scalar
1606  character(len=*), intent(in) :: name !< variable name
1607  character(len=*), intent(in) :: mem_path !< path where variable is stored
1608  ! -- local
1609  type(MemoryType), pointer :: mt
1610  logical(LGP) :: found
1611  ! -- code
1612  call get_from_memorystore(name, mem_path, mt, found)
1613  sclr => mt%intsclr
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 1632 of file MemoryManager.f90.

1633  integer(I4B), dimension(:), pointer, contiguous, intent(inout) :: aint !< pointer to 1d integer array
1634  character(len=*), intent(in) :: name !< variable name
1635  character(len=*), intent(in) :: mem_path !< path where variable is stored
1636  ! -- local
1637  type(MemoryType), pointer :: mt
1638  logical(LGP) :: found
1639  ! -- code
1640  call get_from_memorystore(name, mem_path, mt, found)
1641  aint => mt%aint1d
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 1646 of file MemoryManager.f90.

1647  integer(I4B), dimension(:, :), pointer, contiguous, intent(inout) :: aint !< pointer to 2d integer array
1648  character(len=*), intent(in) :: name !< variable name
1649  character(len=*), intent(in) :: mem_path !< path where variable is stored
1650  ! -- local
1651  type(MemoryType), pointer :: mt
1652  logical(LGP) :: found
1653  ! -- code
1654  call get_from_memorystore(name, mem_path, mt, found)
1655  aint => mt%aint2d
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 1660 of file MemoryManager.f90.

1661  integer(I4B), dimension(:, :, :), pointer, contiguous, intent(inout) :: aint !< pointer to 3d integer array
1662  character(len=*), intent(in) :: name !< variable name
1663  character(len=*), intent(in) :: mem_path !< path where variable is stored
1664  ! -- local
1665  type(MemoryType), pointer :: mt
1666  logical(LGP) :: found
1667  ! -- code
1668  call get_from_memorystore(name, mem_path, mt, found)
1669  aint => mt%aint3d
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 1590 of file MemoryManager.f90.

1591  logical(LGP), pointer, intent(inout) :: sclr !< pointer to logical scalar
1592  character(len=*), intent(in) :: name !< variable name
1593  character(len=*), intent(in) :: mem_path !< path where variable is stored
1594  ! -- local
1595  type(MemoryType), pointer :: mt
1596  logical(LGP) :: found
1597  ! -- code
1598  call get_from_memorystore(name, mem_path, mt, found)
1599  sclr => mt%logicalsclr
Here is the call graph for this function:

◆ setptr_logical1d()

subroutine memorymanagermodule::mem_setptr::setptr_logical1d ( logical(lgp), dimension(:), intent(inout), pointer, contiguous  alog,
character(len=*), intent(in)  name,
character(len=*), intent(in)  mem_path 
)
private
Parameters
[in,out]alogpointer to 1d logical array
[in]namevariable name
[in]mem_pathpath where variable is stored

Definition at line 1618 of file MemoryManager.f90.

1619  logical(LGP), dimension(:), pointer, contiguous, intent(inout) :: alog !< pointer to 1d logical array
1620  character(len=*), intent(in) :: name !< variable name
1621  character(len=*), intent(in) :: mem_path !< path where variable is stored
1622  ! -- local
1623  type(MemoryType), pointer :: mt
1624  logical(LGP) :: found
1625  ! -- code
1626  call get_from_memorystore(name, mem_path, mt, found)
1627  alog => mt%alogical1d
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 1730 of file MemoryManager.f90.

1731  character(len=:), pointer :: asrt !< pointer to the character string
1732  character(len=*), intent(in) :: name !< variable name
1733  character(len=*), intent(in) :: mem_path !< path where variable is stored
1734  ! -- local
1735  type(MemoryType), pointer :: mt
1736  logical(LGP) :: found
1737  ! -- code
1738  call get_from_memorystore(name, mem_path, mt, found)
1739  asrt => mt%strsclr
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 1744 of file MemoryManager.f90.

1745  character(len=:), dimension(:), &
1746  pointer, contiguous, intent(inout) :: astr1d !< pointer to the string array
1747  character(len=*), intent(in) :: name !< variable name
1748  character(len=*), intent(in) :: mem_path !< path where variable is stored
1749  ! -- local
1750  type(MemoryType), pointer :: mt
1751  logical(LGP) :: found
1752  ! -- code
1753  call get_from_memorystore(name, mem_path, mt, found)
1754  select type (item => mt%astr1d)
1755  type is (character(*))
1756  astr1d => item
1757  class default
1758  astr1d => null()
1759  end select
Here is the call graph for this function:

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