MODFLOW 6  version 6.7.0.dev2
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 735 of file LoadContext.f90.

737  real(DP), dimension(:, :), pointer, &
738  contiguous, intent(inout) :: auxvar
739  character(len=*), intent(in) :: mempath
740  integer(I4B) :: isize
741  call get_isize('AUXVAR', mempath, isize)
742  if (isize > -1) then
743  call mem_setptr(auxvar, 'AUXVAR', mempath)
744  else
745  call mem_allocate(auxvar, 0, 0, 'AUXVAR', mempath)
746  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 716 of file LoadContext.f90.

718  type(CharacterStringType), dimension(:), pointer, &
719  contiguous, intent(inout) :: charstr1d
720  character(len=*), intent(in) :: varname
721  character(len=*), intent(in) :: mempath
722  integer(I4B), intent(in) :: strlen
723  integer(I4B) :: isize
724  call get_isize(varname, mempath, isize)
725  if (isize > -1) then
726  call mem_setptr(charstr1d, varname, mempath)
727  else
728  call mem_allocate(charstr1d, strlen, 0, varname, mempath)
729  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 699 of file LoadContext.f90.

701  integer(I4B), pointer, intent(inout) :: intptr
702  character(len=*), intent(in) :: varname
703  character(len=*), intent(in) :: mempath
704  integer(I4B) :: isize
705  call get_isize(varname, mempath, isize)
706  if (isize > -1) then
707  call mem_setptr(intptr, varname, mempath)
708  else
709  call mem_allocate(intptr, varname, mempath)
710  intptr = 0
711  end if
Here is the call graph for this function:

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