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

Public Member Functions

subroutine checkin_logical1d (alog, name, mem_path, name2, mem_path2)
 Check in an existing 1d logical array with a new address (name + path).
subroutine checkin_int1d (aint, name, mem_path, name2, mem_path2)
 Check in an existing 1d integer array with a new address (name + path).
subroutine checkin_int2d (aint2d, name, mem_path, name2, mem_path2)
 Check in an existing 2d integer array with a new address (name + path).
subroutine checkin_dbl1d (adbl, name, mem_path, name2, mem_path2)
 Check in an existing 1d double precision array with a new address (name + path).
subroutine checkin_dbl2d (adbl2d, name, mem_path, name2, mem_path2)
 Check in an existing 2d double precision array with a new address (name + path).
subroutine checkin_charstr1d (acharstr1d, ilen, name, mem_path, name2, mem_path2)
 Check in an existing 1d CharacterStringType array with a new address (name + path).

Detailed Description

Definition at line 72 of file MemoryManager.f90.

Member Function/Subroutine Documentation

◆ checkin_charstr1d()

subroutine memorymanagermodule::mem_checkin::checkin_charstr1d ( type(characterstringtype), dimension(:), intent(inout), pointer, contiguous acharstr1d,
integer(i4b), intent(in) ilen,
character(len=*), intent(in) name,
character(len=*), intent(in) mem_path,
character(len=*), intent(in) name2,
character(len=*), intent(in) mem_path2 )
Parameters
[in,out]acharstr1dthe existing array
[in]namenew variable name
[in]mem_pathnew path where variable is stored
[in]name2existing variable name
[in]mem_path2existing path where variable is stored

Definition at line 1152 of file MemoryManager.f90.

1153 type(CharacterStringType), dimension(:), &
1154 pointer, contiguous, intent(inout) :: acharstr1d !< the existing array
1155 integer(I4B), intent(in) :: ilen
1156 character(len=*), intent(in) :: name !< new variable name
1157 character(len=*), intent(in) :: mem_path !< new path where variable is stored
1158 character(len=*), intent(in) :: name2 !< existing variable name
1159 character(len=*), intent(in) :: mem_path2 !< existing path where variable is stored
1160 ! --local
1161 type(MemoryType), pointer :: mt
1162 integer(I4B) :: isize
1163 ! -- code
1164 !
1165 ! -- check variable name length
1166 call mem_check_length(name, lenvarname, "variable")
1167 !
1168 ! -- set isize
1169 isize = size(acharstr1d)
1170 !
1171 ! -- allocate memory type
1172 allocate (mt)
1173 !
1174 ! -- set memory type
1175 mt%acharstr1d => acharstr1d
1176 mt%element_size = ilen
1177 mt%isize = isize
1178 mt%name = name
1179 mt%path = mem_path
1180 write (mt%memtype, "(a,' LEN=',i0,' (',i0,')')") 'STRING', ilen, isize
1181 !
1182 ! -- set master information
1183 mt%master = .false.
1184 mt%mastername = name2
1185 mt%masterPath = mem_path2
1186 !
1187 ! -- add memory type to the memory list
1188 call memorystore%add(mt)
Here is the call graph for this function:

◆ checkin_dbl1d()

subroutine memorymanagermodule::mem_checkin::checkin_dbl1d ( real(dp), dimension(:), intent(inout), pointer, contiguous adbl,
character(len=*), intent(in) name,
character(len=*), intent(in) mem_path,
character(len=*), intent(in) name2,
character(len=*), intent(in) mem_path2 )
Parameters
[in,out]adblthe existing array
[in]namenew variable name
[in]mem_pathnew path where variable is stored
[in]name2existing variable name
[in]mem_path2existing path where variable is stored

Definition at line 1073 of file MemoryManager.f90.

1074 real(DP), dimension(:), pointer, contiguous, intent(inout) :: adbl !< the existing array
1075 character(len=*), intent(in) :: name !< new variable name
1076 character(len=*), intent(in) :: mem_path !< new path where variable is stored
1077 character(len=*), intent(in) :: name2 !< existing variable name
1078 character(len=*), intent(in) :: mem_path2 !< existing path where variable is stored
1079 ! -- local
1080 type(MemoryType), pointer :: mt
1081 integer(I4B) :: isize
1082 ! -- code
1083 !
1084 ! -- check the variable name length
1085 call mem_check_length(name, lenvarname, "variable")
1086 !
1087 ! -- set isize
1088 isize = size(adbl)
1089 !
1090 ! -- allocate memory type
1091 allocate (mt)
1092 !
1093 ! -- set memory type
1094 mt%adbl1d => adbl
1095 mt%element_size = dp
1096 mt%isize = isize
1097 mt%name = name
1098 mt%path = mem_path
1099 write (mt%memtype, "(a,' (',i0,')')") 'DOUBLE', isize
1100 !
1101 ! -- set master information
1102 mt%master = .false.
1103 mt%mastername = name2
1104 mt%masterPath = mem_path2
1105 !
1106 ! -- add memory type to the memory list
1107 call memorystore%add(mt)
Here is the call graph for this function:

◆ checkin_dbl2d()

subroutine memorymanagermodule::mem_checkin::checkin_dbl2d ( real(dp), dimension(:, :), intent(inout), pointer, contiguous adbl2d,
character(len=*), intent(in) name,
character(len=*), intent(in) mem_path,
character(len=*), intent(in) name2,
character(len=*), intent(in) mem_path2 )
Parameters
[in,out]adbl2dthe existing 2d array
[in]namenew variable name
[in]mem_pathnew path where variable is stored
[in]name2existing variable name
[in]mem_path2existing path where variable is stored

Definition at line 1112 of file MemoryManager.f90.

1113 real(DP), dimension(:, :), pointer, contiguous, intent(inout) :: adbl2d !< the existing 2d array
1114 character(len=*), intent(in) :: name !< new variable name
1115 character(len=*), intent(in) :: mem_path !< new path where variable is stored
1116 character(len=*), intent(in) :: name2 !< existing variable name
1117 character(len=*), intent(in) :: mem_path2 !< existing path where variable is stored
1118 ! -- local
1119 type(MemoryType), pointer :: mt
1120 integer(I4B) :: ncol, nrow, isize
1121 ! -- code
1122 !
1123 ! -- check the variable name length
1124 call mem_check_length(name, lenvarname, "variable")
1125 !
1126 ! -- set isize
1127 ncol = size(adbl2d, dim=1)
1128 nrow = size(adbl2d, dim=2)
1129 isize = ncol * nrow
1130 !
1131 ! -- allocate memory type
1132 allocate (mt)
1133 !
1134 ! -- set memory type
1135 mt%adbl2d => adbl2d
1136 mt%isize = isize
1137 mt%name = name
1138 mt%path = mem_path
1139 write (mt%memtype, "(a,' (',i0,',',i0,')')") 'DOUBLE', ncol, nrow
1140 !
1141 ! -- set master information
1142 mt%master = .false.
1143 mt%mastername = name2
1144 mt%masterPath = mem_path2
1145 !
1146 ! -- add memory type to the memory list
1147 call memorystore%add(mt)
Here is the call graph for this function:

◆ checkin_int1d()

subroutine memorymanagermodule::mem_checkin::checkin_int1d ( integer(i4b), dimension(:), intent(in), pointer, contiguous aint,
character(len=*), intent(in) name,
character(len=*), intent(in) mem_path,
character(len=*), intent(in) name2,
character(len=*), intent(in) mem_path2 )
Parameters
[in]aintthe existing array
[in]namenew variable name
[in]mem_pathnew path where variable is stored
[in]name2existing variable name
[in]mem_path2existing path where variable is stored

Definition at line 994 of file MemoryManager.f90.

995 integer(I4B), dimension(:), pointer, contiguous, intent(in) :: aint !< the existing array
996 character(len=*), intent(in) :: name !< new variable name
997 character(len=*), intent(in) :: mem_path !< new path where variable is stored
998 character(len=*), intent(in) :: name2 !< existing variable name
999 character(len=*), intent(in) :: mem_path2 !< existing path where variable is stored
1000 ! --local
1001 type(MemoryType), pointer :: mt
1002 integer(I4B) :: isize
1003 ! -- code
1004 !
1005 ! -- check variable name length
1006 call mem_check_length(name, lenvarname, "variable")
1007 !
1008 ! -- set isize
1009 isize = size(aint)
1010 !
1011 ! -- allocate memory type
1012 allocate (mt)
1013 !
1014 ! -- set memory type
1015 mt%aint1d => aint
1016 mt%element_size = i4b
1017 mt%isize = isize
1018 mt%name = name
1019 mt%path = mem_path
1020 write (mt%memtype, "(a,' (',i0,')')") 'INTEGER', isize
1021 !
1022 ! -- set master information
1023 mt%master = .false.
1024 mt%mastername = name2
1025 mt%masterPath = mem_path2
1026 !
1027 ! -- add memory type to the memory list
1028 call memorystore%add(mt)
Here is the call graph for this function:

◆ checkin_int2d()

subroutine memorymanagermodule::mem_checkin::checkin_int2d ( integer(i4b), dimension(:, :), intent(inout), pointer, contiguous aint2d,
character(len=*), intent(in) name,
character(len=*), intent(in) mem_path,
character(len=*), intent(in) name2,
character(len=*), intent(in) mem_path2 )
Parameters
[in,out]aint2dthe existing 2d array
[in]namenew variable name
[in]mem_pathnew path where variable is stored
[in]name2existing variable name
[in]mem_path2existing path where variable is stored

Definition at line 1033 of file MemoryManager.f90.

1034 integer(I4B), dimension(:, :), pointer, contiguous, intent(inout) :: aint2d !< the existing 2d array
1035 character(len=*), intent(in) :: name !< new variable name
1036 character(len=*), intent(in) :: mem_path !< new path where variable is stored
1037 character(len=*), intent(in) :: name2 !< existing variable name
1038 character(len=*), intent(in) :: mem_path2 !< existing path where variable is stored
1039 ! -- local
1040 type(MemoryType), pointer :: mt
1041 integer(I4B) :: ncol, nrow, isize
1042 ! -- code
1043 !
1044 ! -- check the variable name length
1045 call mem_check_length(name, lenvarname, "variable")
1046 !
1047 ! -- set isize
1048 ncol = size(aint2d, dim=1)
1049 nrow = size(aint2d, dim=2)
1050 isize = ncol * nrow
1051 !
1052 ! -- allocate memory type
1053 allocate (mt)
1054 !
1055 ! -- set memory type
1056 mt%aint2d => aint2d
1057 mt%isize = isize
1058 mt%name = name
1059 mt%path = mem_path
1060 write (mt%memtype, "(a,' (',i0,',',i0,')')") 'INTEGER', ncol, nrow
1061 !
1062 ! -- set master information
1063 mt%master = .false.
1064 mt%mastername = name2
1065 mt%masterPath = mem_path2
1066 !
1067 ! -- add memory type to the memory list
1068 call memorystore%add(mt)
Here is the call graph for this function:

◆ checkin_logical1d()

subroutine memorymanagermodule::mem_checkin::checkin_logical1d ( logical(lgp), dimension(:), intent(in), pointer, contiguous alog,
character(len=*), intent(in) name,
character(len=*), intent(in) mem_path,
character(len=*), intent(in) name2,
character(len=*), intent(in) mem_path2 )
Parameters
[in]alogthe existing array
[in]namenew variable name
[in]mem_pathnew path where variable is stored
[in]name2existing variable name
[in]mem_path2existing path where variable is stored

Definition at line 955 of file MemoryManager.f90.

956 logical(LGP), dimension(:), pointer, contiguous, intent(in) :: alog !< the existing array
957 character(len=*), intent(in) :: name !< new variable name
958 character(len=*), intent(in) :: mem_path !< new path where variable is stored
959 character(len=*), intent(in) :: name2 !< existing variable name
960 character(len=*), intent(in) :: mem_path2 !< existing path where variable is stored
961 ! --local
962 type(MemoryType), pointer :: mt
963 integer(I4B) :: isize
964 ! -- code
965 !
966 ! -- check variable name length
967 call mem_check_length(name, lenvarname, "variable")
968 !
969 ! -- set isize
970 isize = size(alog)
971 !
972 ! -- allocate memory type
973 allocate (mt)
974 !
975 ! -- set memory type
976 mt%alogical1d => alog
977 mt%element_size = lgp
978 mt%isize = isize
979 mt%name = name
980 mt%path = mem_path
981 write (mt%memtype, "(a,' (',i0,')')") 'LOGICAL', isize
982 !
983 ! -- set master information
984 mt%master = .false.
985 mt%mastername = name2
986 mt%masterPath = mem_path2
987 !
988 ! -- add memory type to the memory list
989 call memorystore%add(mt)
Here is the call graph for this function:

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