MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
loadcontextmodule::setptr Interface Reference
Collaboration diagram for loadcontextmodule::setptr:
Collaboration graph

Public Member Functions

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

Detailed Description

Definition at line 59 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 )

Definition at line 1350 of file LoadContext.f90.

1352 real(DP), dimension(:, :), pointer, &
1353 contiguous, intent(inout) :: auxvar
1354 character(len=*), intent(in) :: mempath
1355 integer(I4B) :: isize
1356 call get_isize('AUXVAR', mempath, isize)
1357 if (isize > -1) then
1358 call mem_setptr(auxvar, 'AUXVAR', mempath)
1359 else
1360 call mem_allocate(auxvar, 0, 0, 'AUXVAR', mempath)
1361 end if
subroutine, public get_isize(name, mem_path, isize)
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 )

Definition at line 1331 of file LoadContext.f90.

1333 type(CharacterStringType), dimension(:), pointer, &
1334 contiguous, intent(inout) :: charstr1d
1335 character(len=*), intent(in) :: varname
1336 character(len=*), intent(in) :: mempath
1337 integer(I4B), intent(in) :: strlen
1338 integer(I4B) :: isize
1339 call get_isize(varname, mempath, isize)
1340 if (isize > -1) then
1341 call mem_setptr(charstr1d, varname, mempath)
1342 else
1343 call mem_allocate(charstr1d, strlen, 0, varname, mempath)
1344 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 )

Definition at line 1314 of file LoadContext.f90.

1316 integer(I4B), pointer, intent(inout) :: intptr
1317 character(len=*), intent(in) :: varname
1318 character(len=*), intent(in) :: mempath
1319 integer(I4B) :: isize
1320 call get_isize(varname, mempath, isize)
1321 if (isize > -1) then
1322 call mem_setptr(intptr, varname, mempath)
1323 else
1324 call mem_allocate(intptr, varname, mempath)
1325 intptr = 0
1326 end if
Here is the call graph for this function:

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