MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
gwf-csub-memory.f90
Go to the documentation of this file.
1!> @brief CSUB package memory allocation and deallocation
2!<
3submodule(gwfcsubmodule) gwfcsubmodulememory
4contains
5
6 ! -- documented on the GwfCsubType type-bound procedure in gwf-csub.f90
7 module subroutine csub_allocate_scalars(this)
8 ! -- modules
10 ! -- dummy variables
11 class(GwfCsubType), intent(inout) :: this
12 !
13 ! -- call standard NumericalPackageType allocate scalars
14 call this%NumericalPackageType%allocate_scalars()
15 !
16 ! -- allocate character variables
17 call mem_allocate(this%listlabel, lenlistlabel, 'LISTLABEL', this%memoryPath)
18 call mem_allocate(this%stoMemPath, lenmempath, 'STONAME', this%memoryPath)
19 !
20 ! -- allocate the object and assign values to object variables
21 call mem_allocate(this%istounit, 'ISTOUNIT', this%memoryPath)
22 call mem_allocate(this%inobspkg, 'INOBSPKG', this%memoryPath)
23 call mem_allocate(this%ninterbeds, 'NINTERBEDS', this%memoryPath)
24 call mem_allocate(this%maxsig0, 'MAXSIG0', this%memoryPath)
25 call mem_allocate(this%nbound, 'NBOUND', this%memoryPath)
26 call mem_allocate(this%iscloc, 'ISCLOC', this%memoryPath)
27 call mem_allocate(this%iauxmultcol, 'IAUXMULTCOL', this%memoryPath)
28 call mem_allocate(this%ndelaycells, 'NDELAYCELLS', this%memoryPath)
29 call mem_allocate(this%ndelaybeds, 'NDELAYBEDS', this%memoryPath)
30 call mem_allocate(this%initialized, 'INITIALIZED', this%memoryPath)
31 call mem_allocate(this%ieslag, 'IESLAG', this%memoryPath)
32 call mem_allocate(this%ipch, 'IPCH', this%memoryPath)
33 call mem_allocate(this%istrict_stress, 'ISTRICT_STRESS', this%memoryPath)
34 call mem_allocate(this%nreg_ts, 'NREG_TS', this%memoryPath)
35 call mem_allocate(this%lhead_based, 'LHEAD_BASED', this%memoryPath)
36 call mem_allocate(this%iupdatestress, 'IUPDATESTRESS', this%memoryPath)
37 call mem_allocate(this%ispecified_pcs, 'ISPECIFIED_PCS', this%memoryPath)
38 call mem_allocate(this%ispecified_dbh, 'ISPECIFIED_DBH', this%memoryPath)
39 call mem_allocate(this%inamedbound, 'INAMEDBOUND', this%memoryPath)
40 call mem_allocate(this%iconvchk, 'ICONVCHK', this%memoryPath)
41 call mem_allocate(this%naux, 'NAUX', this%memoryPath)
42 call mem_allocate(this%istoragec, 'ISTORAGEC', this%memoryPath)
43 call mem_allocate(this%istrainib, 'ISTRAINIB', this%memoryPath)
44 call mem_allocate(this%istrainsk, 'ISTRAINSK', this%memoryPath)
45 call mem_allocate(this%ioutcomp, 'IOUTCOMP', this%memoryPath)
46 call mem_allocate(this%ioutcompi, 'IOUTCOMPI', this%memoryPath)
47 call mem_allocate(this%ioutcompe, 'IOUTCOMPE', this%memoryPath)
48 call mem_allocate(this%ioutcompib, 'IOUTCOMPIB', this%memoryPath)
49 call mem_allocate(this%ioutcomps, 'IOUTCOMPS', this%memoryPath)
50 call mem_allocate(this%ioutzdisp, 'IOUTZDISP', this%memoryPath)
51 call mem_allocate(this%ipakcsv, 'IPAKCSV', this%memoryPath)
52 call mem_allocate(this%iupdatematprop, 'IUPDATEMATPROP', this%memoryPath)
53 call mem_allocate(this%epsilon, 'EPSILON', this%memoryPath)
54 call mem_allocate(this%cc_crit, 'CC_CRIT', this%memoryPath)
55 call mem_allocate(this%gammaw, 'GAMMAW', this%memoryPath)
56 call mem_allocate(this%beta, 'BETA', this%memoryPath)
57 call mem_allocate(this%brg, 'BRG', this%memoryPath)
58 call mem_allocate(this%satomega, 'SATOMEGA', this%memoryPath)
59 call mem_allocate(this%pcsomega, 'PCSOMEGA', this%memoryPath)
60 call mem_allocate(this%icellf, 'ICELLF', this%memoryPath)
61 call mem_allocate(this%gwfiss0, 'GWFISS0', this%memoryPath)
62 !
63 ! -- allocate text strings
64 call mem_allocate(this%auxname, lenauxname, 0, 'AUXNAME', this%memoryPath)
65 !
66 ! -- initialize values
67 this%istounit = 0
68 this%inobspkg = 0
69 this%ninterbeds = 0
70 this%maxsig0 = 0
71 this%nbound = 0
72 this%iscloc = 0
73 this%iauxmultcol = 0
74 this%ndelaycells = 19
75 this%ndelaybeds = 0
76 this%initialized = 0
77 this%ieslag = 0
78 this%ipch = 0
79 this%istrict_stress = 0
80 this%nreg_ts = 0
81 this%lhead_based = .false.
82 this%iupdatestress = 1
83 this%ispecified_pcs = 0
84 this%ispecified_dbh = 0
85 this%inamedbound = 0
86 this%iconvchk = 1
87 this%naux = 0
88 this%istoragec = 1
89 this%istrainib = 0
90 this%istrainsk = 0
91 this%ioutcomp = 0
92 this%ioutcompi = 0
93 this%ioutcompe = 0
94 this%ioutcompib = 0
95 this%ioutcomps = 0
96 this%ioutzdisp = 0
97 this%ipakcsv = 0
98 this%iupdatematprop = 0
99 this%epsilon = dzero
100 this%cc_crit = dem7
101 this%gammaw = dgravity * 1000._dp
102 this%beta = 4.6512e-10_dp
103 this%brg = this%gammaw * this%beta
104 ! -- fraction of pcs over which ssk blends elastic->inelastic; 0 = hard switch
105 this%pcsomega = dzero
106 !
107 ! -- set omega value used for saturation calculations
108 if (this%inewton /= 0) then
109 this%satomega = dem6
110 this%epsilon = dhalf * dem6
111 else
112 this%satomega = dzero
113 end if
114 this%icellf = 0
115 this%ninterbeds = 0
116 this%gwfiss0 = 0
117 end subroutine csub_allocate_scalars
118
119 ! -- documented on the GwfCsubType type-bound procedure in gwf-csub.f90
120 module subroutine csub_allocate_arrays(this)
121 ! -- modules
123 ! -- dummy variables
124 class(GwfCsubType), intent(inout) :: this
125 ! -- local variables
126 integer(I4B) :: j
127 integer(I4B) :: n
128 integer(I4B) :: iblen
129 integer(I4B) :: naux
130 !
131 ! -- grid based data
132 if (this%ioutcomp == 0 .and. this%ioutcompi == 0 .and. &
133 this%ioutcompe == 0 .and. this%ioutcompib == 0 .and. &
134 this%ioutcomps == 0 .and. this%ioutzdisp == 0) then
135 call mem_allocate(this%buff, 1, 'BUFF', trim(this%memoryPath))
136 else
137 call mem_allocate(this%buff, this%dis%nodes, 'BUFF', trim(this%memoryPath))
138 end if
139 if (this%ioutcomp == 0 .and. this%ioutzdisp == 0) then
140 call mem_allocate(this%buffusr, 1, 'BUFFUSR', trim(this%memoryPath))
141 else
142 call mem_allocate(this%buffusr, this%dis%nodesuser, 'BUFFUSR', &
143 trim(this%memoryPath))
144 end if
145 call mem_allocate(this%sgm, this%dis%nodes, 'SGM', trim(this%memoryPath))
146 call mem_allocate(this%sgs, this%dis%nodes, 'SGS', trim(this%memoryPath))
147 call mem_allocate(this%cg_ske_cr, this%dis%nodes, 'CG_SKE_CR', &
148 trim(this%memoryPath))
149 call mem_allocate(this%cg_es, this%dis%nodes, 'CG_ES', &
150 trim(this%memoryPath))
151 call mem_allocate(this%cg_es0, this%dis%nodes, 'CG_ES0', &
152 trim(this%memoryPath))
153 call mem_allocate(this%cg_pcs, this%dis%nodes, 'CG_PCS', &
154 trim(this%memoryPath))
155 call mem_allocate(this%cg_comp, this%dis%nodes, 'CG_COMP', &
156 trim(this%memoryPath))
157 call mem_allocate(this%cg_tcomp, this%dis%nodes, 'CG_TCOMP', &
158 trim(this%memoryPath))
159 call mem_allocate(this%cg_stor, this%dis%nodes, 'CG_STOR', &
160 trim(this%memoryPath))
161 call mem_allocate(this%cg_ske, this%dis%nodes, 'CG_SKE', &
162 trim(this%memoryPath))
163 call mem_allocate(this%cg_sk, this%dis%nodes, 'CG_SK', &
164 trim(this%memoryPath))
165 call mem_allocate(this%cg_thickini, this%dis%nodes, 'CG_THICKINI', &
166 trim(this%memoryPath))
167 call mem_allocate(this%cg_thetaini, this%dis%nodes, 'CG_THETAINI', &
168 trim(this%memoryPath))
169 if (this%iupdatematprop == 0) then
170 call mem_setptr(this%cg_thick, 'CG_THICKINI', trim(this%memoryPath))
171 call mem_setptr(this%cg_thick0, 'CG_THICKINI', trim(this%memoryPath))
172 call mem_setptr(this%cg_theta, 'CG_THETAINI', trim(this%memoryPath))
173 call mem_setptr(this%cg_theta0, 'CG_THETAINI', trim(this%memoryPath))
174 else
175 call mem_allocate(this%cg_thick, this%dis%nodes, 'CG_THICK', &
176 trim(this%memoryPath))
177 call mem_allocate(this%cg_thick0, this%dis%nodes, 'CG_THICK0', &
178 trim(this%memoryPath))
179 call mem_allocate(this%cg_theta, this%dis%nodes, 'CG_THETA', &
180 trim(this%memoryPath))
181 call mem_allocate(this%cg_theta0, this%dis%nodes, 'CG_THETA0', &
182 trim(this%memoryPath))
183 end if
184 !
185 ! -- cell storage data
186 call mem_allocate(this%cell_wcstor, this%dis%nodes, 'CELL_WCSTOR', &
187 trim(this%memoryPath))
188 call mem_allocate(this%cell_thick, this%dis%nodes, 'CELL_THICK', &
189 trim(this%memoryPath))
190 !
191 ! -- interbed data
192 iblen = 1
193 if (this%ninterbeds > 0) then
194 iblen = this%ninterbeds
195 end if
196 naux = 1
197 if (this%naux > 0) then
198 naux = this%naux
199 end if
200 call mem_allocate(this%auxvar, naux, iblen, 'AUXVAR', this%memoryPath)
201 do n = 1, iblen
202 do j = 1, naux
203 this%auxvar(j, n) = dzero
204 end do
205 end do
206 call mem_allocate(this%unodelist, iblen, 'UNODELIST', trim(this%memoryPath))
207 call mem_allocate(this%nodelist, iblen, 'NODELIST', trim(this%memoryPath))
208 call mem_allocate(this%cg_gs, this%dis%nodes, 'CG_GS', trim(this%memoryPath))
209 call mem_allocate(this%pcs, iblen, 'PCS', trim(this%memoryPath))
210 call mem_allocate(this%rnb, iblen, 'RNB', trim(this%memoryPath))
211 call mem_allocate(this%kv, iblen, 'KV', trim(this%memoryPath))
212 call mem_allocate(this%h0, iblen, 'H0', trim(this%memoryPath))
213 call mem_allocate(this%ci, iblen, 'CI', trim(this%memoryPath))
214 call mem_allocate(this%rci, iblen, 'RCI', trim(this%memoryPath))
215 call mem_allocate(this%idelay, iblen, 'IDELAY', trim(this%memoryPath))
216 call mem_allocate(this%ielastic, iblen, 'IELASTIC', trim(this%memoryPath))
217 call mem_allocate(this%iconvert, iblen, 'ICONVERT', trim(this%memoryPath))
218 call mem_allocate(this%comp, iblen, 'COMP', trim(this%memoryPath))
219 call mem_allocate(this%tcomp, iblen, 'TCOMP', trim(this%memoryPath))
220 call mem_allocate(this%tcompi, iblen, 'TCOMPI', trim(this%memoryPath))
221 call mem_allocate(this%tcompe, iblen, 'TCOMPE', trim(this%memoryPath))
222 call mem_allocate(this%storagee, iblen, 'STORAGEE', trim(this%memoryPath))
223 call mem_allocate(this%storagei, iblen, 'STORAGEI', trim(this%memoryPath))
224 call mem_allocate(this%ske, iblen, 'SKE', trim(this%memoryPath))
225 call mem_allocate(this%sk, iblen, 'SK', trim(this%memoryPath))
226 call mem_allocate(this%thickini, iblen, 'THICKINI', trim(this%memoryPath))
227 call mem_allocate(this%thetaini, iblen, 'THETAINI', trim(this%memoryPath))
228 if (this%iupdatematprop == 0) then
229 call mem_setptr(this%thick, 'THICKINI', trim(this%memoryPath))
230 call mem_setptr(this%thick0, 'THICKINI', trim(this%memoryPath))
231 call mem_setptr(this%theta, 'THETAINI', trim(this%memoryPath))
232 call mem_setptr(this%theta0, 'THETAINI', trim(this%memoryPath))
233 else
234 call mem_allocate(this%thick, iblen, 'THICK', trim(this%memoryPath))
235 call mem_allocate(this%thick0, iblen, 'THICK0', trim(this%memoryPath))
236 call mem_allocate(this%theta, iblen, 'THETA', trim(this%memoryPath))
237 call mem_allocate(this%theta0, iblen, 'THETA0', trim(this%memoryPath))
238 end if
239 !
240 ! -- delay bed storage - allocated in csub_source_packagedata
241 ! after number of delay beds is defined
242 !
243 ! -- allocate boundname
244 if (this%inamedbound /= 0) then
245 call mem_allocate(this%boundname, lenboundname, this%ninterbeds, &
246 'BOUNDNAME', trim(this%memoryPath))
247 else
248 call mem_allocate(this%boundname, lenboundname, 1, &
249 'BOUNDNAME', trim(this%memoryPath))
250
251 end if
252 !
253 ! -- allocate the nodelist and bound arrays
254 call mem_allocate(this%nodelistsig0, this%maxsig0, 'NODELISTSIG0', &
255 this%memoryPath)
256
257 ! -- set sig0 input context pointer
258 call mem_setptr(this%sig0, 'SIG0', this%input_mempath)
259 call mem_checkin(this%sig0, 'SIG0', this%memoryPath, &
260 'SIG0', this%input_mempath)
261 !
262 ! -- set pointers to gwf variables
263 call mem_setptr(this%gwfiss, 'ISS', trim(this%name_model))
264 !
265 ! -- set pointers to variables in the storage package
266 call mem_setptr(this%stoiconv, 'ICONVERT', this%stoMemPath)
267 call mem_setptr(this%stoss, 'SS', this%stoMemPath)
268 !
269 ! -- initialize variables that are not specified by user
270 do n = 1, this%dis%nodes
271 this%cg_gs(n) = dzero
272 this%cg_es(n) = dzero
273 this%cg_comp(n) = dzero
274 this%cg_tcomp(n) = dzero
275 this%cell_wcstor(n) = dzero
276 end do
277 do n = 1, this%ninterbeds
278 this%theta(n) = dzero
279 this%tcomp(n) = dzero
280 this%tcompi(n) = dzero
281 this%tcompe(n) = dzero
282 end do
283 do n = 1, this%maxsig0
284 this%nodelistsig0(n) = 0
285 end do
286 end subroutine csub_allocate_arrays
287
288 ! -- documented on the GwfCsubType type-bound procedure in gwf-csub.f90
289 module subroutine csub_da(this)
290 ! -- modules
292 ! -- dummy variables
293 class(GwfCsubType) :: this
294 !
295 ! -- summarize effective-stress regularization for the run
296 if (this%nreg_ts > 0) then
297 write (warnmsg, '(a,1x,i0,1x,3a)') &
298 'CSUB negative effective stress was regularized in', this%nreg_ts, &
299 'time step(s); see the model listing file for the number of cells ', &
300 'regularized in each time step. This typically occurs in uppermost ', &
301 'cells where simulated water levels rise above land surface.'
302 call store_warning(warnmsg)
303 end if
304 !
305 ! -- Deallocate arrays if package is active
306 if (this%inunit > 0) then
307 call mem_deallocate(this%unodelist)
308 call mem_deallocate(this%nodelist)
309 call mem_deallocate(this%idelay)
310 call mem_deallocate(this%ielastic)
311 call mem_deallocate(this%iconvert)
312 !
313 ! -- grid-based storage data
314 call mem_deallocate(this%buff)
315 call mem_deallocate(this%buffusr)
316 call mem_deallocate(this%sgm)
317 call mem_deallocate(this%sgs)
318 call mem_deallocate(this%cg_ske_cr)
319 call mem_deallocate(this%cg_gs)
320 call mem_deallocate(this%cg_es)
321 call mem_deallocate(this%cg_es0)
322 call mem_deallocate(this%cg_pcs)
323 call mem_deallocate(this%cg_comp)
324 call mem_deallocate(this%cg_tcomp)
325 call mem_deallocate(this%cg_stor)
326 call mem_deallocate(this%cg_ske)
327 call mem_deallocate(this%cg_sk)
328 if (this%iupdatematprop == 0) then
329 nullify (this%cg_thick)
330 nullify (this%cg_thick0)
331 nullify (this%cg_theta)
332 nullify (this%cg_theta0)
333 else
334 call mem_deallocate(this%cg_thick)
335 call mem_deallocate(this%cg_thick0)
336 call mem_deallocate(this%cg_theta)
337 call mem_deallocate(this%cg_theta0)
338 end if
339 call mem_deallocate(this%cg_thickini)
340 call mem_deallocate(this%cg_thetaini)
341 !
342 ! -- cell storage
343 call mem_deallocate(this%cell_wcstor)
344 call mem_deallocate(this%cell_thick)
345 !
346 ! -- interbed storage
347 call mem_deallocate(this%boundname, 'BOUNDNAME', this%memoryPath)
348 call mem_deallocate(this%auxname, 'AUXNAME', this%memoryPath)
349 call mem_deallocate(this%auxvar)
350 call mem_deallocate(this%ci)
351 call mem_deallocate(this%rci)
352 call mem_deallocate(this%pcs)
353 call mem_deallocate(this%rnb)
354 call mem_deallocate(this%kv)
355 call mem_deallocate(this%h0)
356 call mem_deallocate(this%comp)
357 call mem_deallocate(this%tcomp)
358 call mem_deallocate(this%tcompi)
359 call mem_deallocate(this%tcompe)
360 call mem_deallocate(this%storagee)
361 call mem_deallocate(this%storagei)
362 call mem_deallocate(this%ske)
363 call mem_deallocate(this%sk)
364 if (this%iupdatematprop == 0) then
365 nullify (this%thick)
366 nullify (this%thick0)
367 nullify (this%theta)
368 nullify (this%theta0)
369 else
370 call mem_deallocate(this%thick)
371 call mem_deallocate(this%thick0)
372 call mem_deallocate(this%theta)
373 call mem_deallocate(this%theta0)
374 end if
375 call mem_deallocate(this%thickini)
376 call mem_deallocate(this%thetaini)
377 !
378 ! -- delay bed storage
379 if (this%ndelaybeds > 0) then
380 if (this%iupdatematprop == 0) then
381 nullify (this%dbdz)
382 nullify (this%dbdz0)
383 nullify (this%dbtheta)
384 nullify (this%dbtheta0)
385 else
386 call mem_deallocate(this%dbdz)
387 call mem_deallocate(this%dbdz0)
388 call mem_deallocate(this%dbtheta)
389 call mem_deallocate(this%dbtheta0)
390 end if
391 call mem_deallocate(this%idb_nconv_count)
392 call mem_deallocate(this%idbconvert)
393 call mem_deallocate(this%dbdhmax)
394 call mem_deallocate(this%dbz)
395 call mem_deallocate(this%dbrelz)
396 call mem_deallocate(this%dbh)
397 call mem_deallocate(this%dbh0)
398 call mem_deallocate(this%dbgeo)
399 call mem_deallocate(this%dbes)
400 call mem_deallocate(this%dbes0)
401 call mem_deallocate(this%dbpcs)
402 call mem_deallocate(this%dbflowtop)
403 call mem_deallocate(this%dbflowbot)
404 call mem_deallocate(this%dbdzini)
405 call mem_deallocate(this%dbthetaini)
406 call mem_deallocate(this%dbcomp)
407 call mem_deallocate(this%dbtcomp)
408 !
409 ! -- delay interbed solution arrays
410 call mem_deallocate(this%dbal)
411 call mem_deallocate(this%dbad)
412 call mem_deallocate(this%dbau)
413 call mem_deallocate(this%dbrhs)
414 call mem_deallocate(this%dbdh)
415 call mem_deallocate(this%dbaw)
416 end if
417 !
418 ! -- period data
419 call mem_deallocate(this%nodelistsig0)
420 call mem_deallocate(this%sig0, 'SIG0', this%memoryPath)
421 !
422 ! -- pointers to gwf variables
423 nullify (this%gwfiss)
424 !
425 ! -- pointers to storage variables
426 nullify (this%stoiconv)
427 nullify (this%stoss)
428 !
429 ! -- input table
430 if (this%iprpak > 0) then
431 call this%inputtab%table_da()
432 deallocate (this%inputtab)
433 nullify (this%inputtab)
434 end if
435 !
436 ! -- output table
437 if (associated(this%outputtab)) then
438 call this%outputtab%table_da()
439 deallocate (this%outputtab)
440 nullify (this%outputtab)
441 end if
442 end if
443 !
444 ! -- package csv table
445 if (this%ipakcsv > 0) then
446 call this%pakcsvtab%table_da()
447 deallocate (this%pakcsvtab)
448 nullify (this%pakcsvtab)
449 end if
450 !
451 ! -- deallocate character variables
452 call mem_deallocate(this%listlabel, 'LISTLABEL', this%memoryPath)
453 call mem_deallocate(this%stoMemPath, 'STONAME', this%memoryPath)
454 !
455 ! -- deallocate scalars
456 call mem_deallocate(this%istounit)
457 call mem_deallocate(this%inobspkg)
458 call mem_deallocate(this%ninterbeds)
459 call mem_deallocate(this%maxsig0)
460 call mem_deallocate(this%nbound)
461 call mem_deallocate(this%iscloc)
462 call mem_deallocate(this%iauxmultcol)
463 call mem_deallocate(this%ndelaycells)
464 call mem_deallocate(this%ndelaybeds)
465 call mem_deallocate(this%initialized)
466 call mem_deallocate(this%ieslag)
467 call mem_deallocate(this%ipch)
468 call mem_deallocate(this%lhead_based)
469 call mem_deallocate(this%iupdatestress)
470 call mem_deallocate(this%ispecified_pcs)
471 call mem_deallocate(this%ispecified_dbh)
472 call mem_deallocate(this%inamedbound)
473 call mem_deallocate(this%iconvchk)
474 call mem_deallocate(this%naux)
475 call mem_deallocate(this%istoragec)
476 call mem_deallocate(this%istrainib)
477 call mem_deallocate(this%istrainsk)
478 call mem_deallocate(this%ioutcomp)
479 call mem_deallocate(this%ioutcompi)
480 call mem_deallocate(this%ioutcompe)
481 call mem_deallocate(this%ioutcompib)
482 call mem_deallocate(this%ioutcomps)
483 call mem_deallocate(this%ioutzdisp)
484 call mem_deallocate(this%ipakcsv)
485 call mem_deallocate(this%iupdatematprop)
486 call mem_deallocate(this%epsilon)
487 call mem_deallocate(this%cc_crit)
488 call mem_deallocate(this%gammaw)
489 call mem_deallocate(this%beta)
490 call mem_deallocate(this%brg)
491 call mem_deallocate(this%satomega)
492 call mem_deallocate(this%pcsomega)
493 call mem_deallocate(this%istrict_stress)
494 call mem_deallocate(this%nreg_ts)
495 call mem_deallocate(this%icellf)
496 call mem_deallocate(this%gwfiss0)
497 !
498 ! -- deallocate methods on objects
499 if (this%inunit > 0) then
500 call this%obs%obs_da()
501 !
502 ! -- deallocate and nullify observations
503 deallocate (this%obs)
504 nullify (this%obs)
505 end if
506
507 !
508 ! -- deallocate parent
509 call this%NumericalPackageType%da()
510 end subroutine csub_da
511
512end submodule gwfcsubmodulememory
This module contains the CSUB package methods.
Definition gwf-csub.f90:23