MODFLOW 6  version 6.7.0.dev3
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 92 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 1755 of file MemoryManager.f90.

1756  type(CharacterStringType), dimension(:), pointer, contiguous, &
1757  intent(inout) :: acharstr1d !< the reallocated charstring array
1758  character(len=*), intent(in) :: name !< variable name
1759  character(len=*), intent(in) :: mem_path !< path where variable is stored
1760  ! -- local
1761  type(MemoryType), pointer :: mt
1762  logical(LGP) :: found
1763  ! -- code
1764  call get_from_memorystore(name, mem_path, mt, found)
1765  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 1665 of file MemoryManager.f90.

1666  real(DP), pointer, intent(inout) :: sclr !< pointer to a real scalar
1667  character(len=*), intent(in) :: name !< variable name
1668  character(len=*), intent(in) :: mem_path !< path where variable is stored
1669  ! -- local
1670  type(MemoryType), pointer :: mt
1671  logical(LGP) :: found
1672  ! -- code
1673  call get_from_memorystore(name, mem_path, mt, found)
1674  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 1679 of file MemoryManager.f90.

1680  real(DP), dimension(:), pointer, contiguous, intent(inout) :: adbl !< pointer to 1d 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_memorystore(name, mem_path, mt, found)
1688  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 1693 of file MemoryManager.f90.

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

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

1596  integer(I4B), pointer, intent(inout) :: sclr !< pointer to integer scalar
1597  character(len=*), intent(in) :: name !< variable name
1598  character(len=*), intent(in) :: mem_path !< path where variable is stored
1599  ! -- local
1600  type(MemoryType), pointer :: mt
1601  logical(LGP) :: found
1602  ! -- code
1603  call get_from_memorystore(name, mem_path, mt, found)
1604  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 1623 of file MemoryManager.f90.

1624  integer(I4B), dimension(:), pointer, contiguous, intent(inout) :: aint !< pointer to 1d integer array
1625  character(len=*), intent(in) :: name !< variable name
1626  character(len=*), intent(in) :: mem_path !< path where variable is stored
1627  ! -- local
1628  type(MemoryType), pointer :: mt
1629  logical(LGP) :: found
1630  ! -- code
1631  call get_from_memorystore(name, mem_path, mt, found)
1632  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 1637 of file MemoryManager.f90.

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

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

1582  logical(LGP), pointer, intent(inout) :: sclr !< pointer to logical scalar
1583  character(len=*), intent(in) :: name !< variable name
1584  character(len=*), intent(in) :: mem_path !< path where variable is stored
1585  ! -- local
1586  type(MemoryType), pointer :: mt
1587  logical(LGP) :: found
1588  ! -- code
1589  call get_from_memorystore(name, mem_path, mt, found)
1590  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 1609 of file MemoryManager.f90.

1610  logical(LGP), dimension(:), pointer, contiguous, intent(inout) :: alog !< pointer to 1d logical array
1611  character(len=*), intent(in) :: name !< variable name
1612  character(len=*), intent(in) :: mem_path !< path where variable is stored
1613  ! -- local
1614  type(MemoryType), pointer :: mt
1615  logical(LGP) :: found
1616  ! -- code
1617  call get_from_memorystore(name, mem_path, mt, found)
1618  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 1721 of file MemoryManager.f90.

1722  character(len=:), pointer :: asrt !< pointer to the character string
1723  character(len=*), intent(in) :: name !< variable name
1724  character(len=*), intent(in) :: mem_path !< path where variable is stored
1725  ! -- local
1726  type(MemoryType), pointer :: mt
1727  logical(LGP) :: found
1728  ! -- code
1729  call get_from_memorystore(name, mem_path, mt, found)
1730  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 1735 of file MemoryManager.f90.

1736  character(len=:), dimension(:), &
1737  pointer, contiguous, intent(inout) :: astr1d !< pointer to the string array
1738  character(len=*), intent(in) :: name !< variable name
1739  character(len=*), intent(in) :: mem_path !< path where variable is stored
1740  ! -- local
1741  type(MemoryType), pointer :: mt
1742  logical(LGP) :: found
1743  ! -- code
1744  call get_from_memorystore(name, mem_path, mt, found)
1745  select type (item => mt%astr1d)
1746  type is (character(*))
1747  astr1d => item
1748  class default
1749  astr1d => null()
1750  end select
Here is the call graph for this function:

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