187 class(Mesh2dDisExportType),
intent(inout) :: this
188 class(ExportPackageType),
pointer,
intent(in) :: export_pkg
189 type(InputParamDefinitionType),
pointer :: idt
190 integer(I4B),
dimension(:),
pointer,
contiguous :: int1d
191 real(DP),
dimension(:),
pointer,
contiguous :: dbl1d, nodes
192 real(DP),
dimension(:, :),
pointer,
contiguous :: dbl2d
193 character(len=LINELENGTH) :: nc_tag
194 integer(I4B) :: iaux, iparam, nvals
196 integer(I4B),
pointer :: nbound
202 do iparam = 1, export_pkg%nparam
204 if (export_pkg%param_reads(iparam)%invar < 1) cycle
209 export_pkg%mf6_input%component_type, &
210 export_pkg%mf6_input%subcomponent_type, &
211 'PERIOD', export_pkg%param_names(iparam),
'')
214 nc_tag = this%input_attribute(export_pkg%mf6_input%subcomponent_name, &
218 select case (idt%datatype)
220 call mem_setptr(int1d, idt%mf6varname, export_pkg%mf6_input%mempath)
221 this%var_ids%export(1) = export_pkg%varids_param(iparam, 1)
222 call nc_export_int1d(int1d, this%ncid, this%dim_ids, this%x_dim, &
223 this%y_dim, this%var_ids, this%dis, idt, &
224 export_pkg%mf6_input%mempath, nc_tag, &
225 export_pkg%mf6_input%subcomponent_name, &
226 this%gridmap_name, this%deflate, this%shuffle, &
227 this%chunk_face,
kper, this%nc_fname)
229 call mem_setptr(dbl1d, idt%mf6varname, export_pkg%mf6_input%mempath)
230 select case (idt%shape)
232 this%var_ids%export(1) = export_pkg%varids_param(iparam, 1)
233 call nc_export_dbl1d(dbl1d, this%ncid, this%dim_ids, this%x_dim, &
234 this%y_dim, this%var_ids, this%dis, idt, &
235 export_pkg%mf6_input%mempath, nc_tag, &
236 export_pkg%mf6_input%subcomponent_name, &
237 this%gridmap_name, this%deflate, this%shuffle, &
238 this%chunk_face,
kper, iaux, this%nc_fname)
240 nvals = this%dis%nodesuser
241 allocate (nodes(nvals))
243 do k = 1, this%dis%nlay
244 this%var_ids%export(k) = export_pkg%varids_param(iparam, k)
246 call mem_setptr(dbl1d, idt%mf6varname, export_pkg%mf6_input%mempath)
247 call mem_setptr(int1d,
'NODEULIST', export_pkg%mf6_input%mempath)
248 call mem_setptr(nbound,
'NBOUND', export_pkg%mf6_input%mempath)
250 nodes(int1d(n)) = dbl1d(n)
252 call nc_export_dbl1d(nodes, this%ncid, this%dim_ids, this%x_dim, &
253 this%y_dim, this%var_ids, this%dis, idt, &
254 export_pkg%mf6_input%mempath, nc_tag, &
255 export_pkg%mf6_input%subcomponent_name, &
256 this%gridmap_name, this%deflate, this%shuffle, &
257 this%chunk_face,
kper, iaux, this%nc_fname)
262 call mem_setptr(dbl2d, idt%mf6varname, export_pkg%mf6_input%mempath)
263 select case (idt%shape)
265 nvals = this%dis%nrow * this%dis%ncol
266 allocate (nodes(nvals))
267 do iaux = 1,
size(dbl2d, dim=1)
268 this%var_ids%export(1) = export_pkg%varids_aux(iaux, 1)
270 nodes(n) = dbl2d(iaux, n)
272 call nc_export_dbl1d(nodes, this%ncid, this%dim_ids, this%x_dim, &
273 this%y_dim, this%var_ids, this%dis, idt, &
274 export_pkg%mf6_input%mempath, nc_tag, &
275 export_pkg%mf6_input%subcomponent_name, &
276 this%gridmap_name, this%deflate, this%shuffle, &
277 this%chunk_face,
kper, iaux, this%nc_fname)
281 nvals = this%dis%nodesuser
282 allocate (nodes(nvals))
283 call mem_setptr(int1d,
'NODEULIST', export_pkg%mf6_input%mempath)
284 call mem_setptr(nbound,
'NBOUND', export_pkg%mf6_input%mempath)
285 do iaux = 1,
size(dbl2d, dim=1)
287 do k = 1, this%dis%nlay
288 this%var_ids%export(k) = export_pkg%varids_aux(iaux, k)
291 nodes(int1d(n)) = dbl2d(iaux, n)
293 call nc_export_dbl1d(nodes, this%ncid, this%dim_ids, this%x_dim, &
294 this%y_dim, this%var_ids, this%dis, idt, &
295 export_pkg%mf6_input%mempath, nc_tag, &
296 export_pkg%mf6_input%subcomponent_name, &
297 this%gridmap_name, this%deflate, this%shuffle, &
298 this%chunk_face,
kper, iaux, this%nc_fname)
310 call nf_verify(nf90_sync(this%ncid), this%nc_fname)
This module contains the DefinitionSelectModule.
type(inputparamdefinitiontype) function, pointer, public get_param_definition_type(input_definition_types, component_type, subcomponent_type, blockname, tagname, filename)
Return parameter definition.
This module contains the NCModelExportModule.
integer(i4b), pointer, public kper
current stress period number