MODFLOW 6  version 6.7.0.dev3
USGS Modular Hydrologic Model
loadcontextmodule::setptr Interface Reference
Collaboration diagram for loadcontextmodule::setptr:
Collaboration graph

Private Member Functions

subroutine setptr_int (intptr, varname, mempath)
 set intptr to varname More...
 
subroutine setptr_charstr1d (charstr1d, varname, mempath, strlen)
 set charstr1d pointer to varname More...
 
subroutine setptr_auxvar (auxvar, mempath)
 set auxvar pointer More...
 

Detailed Description

Definition at line 50 of file LoadContext.f90.

Member Function/Subroutine Documentation

◆ setptr_auxvar()

subroutine loadcontextmodule::setptr::setptr_auxvar ( real(dp), dimension(:, :), intent(inout), pointer, contiguous  auxvar,
character(len=*), intent(in)  mempath 
)
private

Definition at line 742 of file LoadContext.f90.

744  real(DP), dimension(:, :), pointer, &
745  contiguous, intent(inout) :: auxvar
746  character(len=*), intent(in) :: mempath
747  integer(I4B) :: isize
748  call get_isize('AUXVAR', mempath, isize)
749  if (isize > -1) then
750  call mem_setptr(auxvar, 'AUXVAR', mempath)
751  else
752  call mem_allocate(auxvar, 0, 0, 'AUXVAR', mempath)
753  end if
subroutine, public get_isize(name, mem_path, isize)
@ brief Get the number of elements for this variable
Here is the call graph for this function:

◆ setptr_charstr1d()

subroutine loadcontextmodule::setptr::setptr_charstr1d ( type(characterstringtype), dimension(:), intent(inout), pointer, contiguous  charstr1d,
character(len=*), intent(in)  varname,
character(len=*), intent(in)  mempath,
integer(i4b), intent(in)  strlen 
)
private

Definition at line 723 of file LoadContext.f90.

725  type(CharacterStringType), dimension(:), pointer, &
726  contiguous, intent(inout) :: charstr1d
727  character(len=*), intent(in) :: varname
728  character(len=*), intent(in) :: mempath
729  integer(I4B), intent(in) :: strlen
730  integer(I4B) :: isize
731  call get_isize(varname, mempath, isize)
732  if (isize > -1) then
733  call mem_setptr(charstr1d, varname, mempath)
734  else
735  call mem_allocate(charstr1d, strlen, 0, varname, mempath)
736  end if
Here is the call graph for this function:

◆ setptr_int()

subroutine loadcontextmodule::setptr::setptr_int ( integer(i4b), intent(inout), pointer  intptr,
character(len=*), intent(in)  varname,
character(len=*), intent(in)  mempath 
)
private

Definition at line 706 of file LoadContext.f90.

708  integer(I4B), pointer, intent(inout) :: intptr
709  character(len=*), intent(in) :: varname
710  character(len=*), intent(in) :: mempath
711  integer(I4B) :: isize
712  call get_isize(varname, mempath, isize)
713  if (isize > -1) then
714  call mem_setptr(intptr, varname, mempath)
715  else
716  call mem_allocate(intptr, varname, mempath)
717  intptr = 0
718  end if
Here is the call graph for this function:

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