214 class(GridArrayLoadType),
intent(inout) :: this
215 type(BlockParserType),
intent(in) :: parser
216 type(InputParamDefinitionType),
intent(in) :: idt
217 character(len=*),
intent(in) :: mempath
218 logical(LGP),
intent(in) :: layered
219 logical(LGP),
intent(in) :: netcdf
220 integer(I4B),
intent(in) :: iaux
221 real(DP),
dimension(:),
pointer,
contiguous :: dbl1d, nodes
222 real(DP),
dimension(:, :),
pointer,
contiguous :: dbl2d
223 integer(I4B),
dimension(:),
allocatable :: layer_shape
224 integer(I4B) :: iparam, n, nlay, nnode
228 select case (idt%datatype)
230 call mem_setptr(dbl1d, idt%mf6varname, mempath)
231 allocate (nodes(this%ctx%nodes))
234 this%mf6_input, this%nc_vars, this%input_name, &
236 else if (layered)
then
240 call read_dbl1d(parser, nodes, idt%mf6varname)
243 call idm_log_var(nodes, idt%tagname, mempath, this%iout)
245 if (this%ctx%nbound > 0)
then
247 do n = 1, this%ctx%nbound
248 dbl1d(n) = nodes(this%nodeulist(n))
252 do n = 1, this%ctx%nodes
255 dbl1d(nnode) = nodes(n)
256 this%nodeulist(nnode) = n
259 this%ctx%nbound = nnode
263 call mem_setptr(dbl2d, idt%mf6varname, mempath)
264 allocate (nodes(this%ctx%nodes))
268 this%mf6_input, this%nc_vars, this%input_name, &
269 this%iout,
kper, iaux)
270 else if (layered)
then
274 call read_dbl1d(parser, nodes, idt%mf6varname)
277 call idm_log_var(nodes, idt%tagname, mempath, this%iout)
279 if (this%ctx%nbound > 0)
then
281 do n = 1, this%ctx%nbound
282 dbl2d(iaux, n) = nodes(this%nodeulist(n))
286 do n = 1, this%ctx%nodes
289 dbl2d(iaux, nnode) = nodes(n)
290 this%nodeulist(nnode) = n
293 this%ctx%nbound = nnode
297 errmsg =
'IDM unimplemented. GridArrayLoad::param_load &
298 &datatype='//trim(idt%datatype)
299 call store_error(errmsg)
300 call store_error_filename(this%input_name)
304 iparam =
ifind(this%param_names, idt%tagname)
306 this%param_reads(iparam)%invar = 1
This module contains simulation constants.
real(dp), parameter dnodata
real no data constant
subroutine, public read_dbl1d(parser, dbl1d, aname)
This module contains the Input Data Model Logger Module.
subroutine, public read_dbl1d_layered(parser, dbl1d, aname, nlay, layer_shape)
This module contains the SourceCommonModule.
subroutine, public get_layered_shape(mshape, nlay, layer_shape)
integer(i4b), pointer, public kper
current stress period number