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 1756 of file MemoryManager.f90.

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

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

1681  real(DP), dimension(:), pointer, contiguous, intent(inout) :: adbl !< pointer to 1d real array
1682  character(len=*), intent(in) :: name !< variable name
1683  character(len=*), intent(in) :: mem_path !< path where variable is stored
1684  ! -- local
1685  type(MemoryType), pointer :: mt
1686  logical(LGP) :: found
1687  ! -- code
1688  call get_from_memorystore(name, mem_path, mt, found)
1689  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 1694 of file MemoryManager.f90.

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

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

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

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

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

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

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

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

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

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

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