MODFLOW 6  version 6.8.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 1763 of file MemoryManager.f90.

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

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

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

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

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

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

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

1646  integer(I4B), dimension(:, :), pointer, contiguous, intent(inout) :: aint !< pointer to 2d integer 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_memorystore(name, mem_path, mt, found)
1654  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 1659 of file MemoryManager.f90.

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

1590  logical(LGP), pointer, intent(inout) :: sclr !< pointer to logical scalar
1591  character(len=*), intent(in) :: name !< variable name
1592  character(len=*), intent(in) :: mem_path !< path where variable is stored
1593  ! -- local
1594  type(MemoryType), pointer :: mt
1595  logical(LGP) :: found
1596  ! -- code
1597  call get_from_memorystore(name, mem_path, mt, found)
1598  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 1617 of file MemoryManager.f90.

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

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

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

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