341 class(Mesh2dDisExportType),
intent(inout) :: this
342 character(len=*),
intent(in) :: pkgtype
343 character(len=*),
intent(in) :: pkgname
344 character(len=*),
intent(in) :: mempath
345 type(InputParamDefinitionType),
pointer,
intent(in) :: idt
346 integer(I4B),
dimension(:),
pointer,
contiguous :: int1d
347 integer(I4B),
dimension(:, :),
pointer,
contiguous :: int2d
348 integer(I4B),
dimension(:, :, :),
pointer,
contiguous :: int3d
349 real(DP),
dimension(:),
pointer,
contiguous :: dbl1d
350 real(DP),
dimension(:, :),
pointer,
contiguous :: dbl2d
351 real(DP),
dimension(:, :, :),
pointer,
contiguous :: dbl3d
352 character(len=LINELENGTH) :: nc_varname, input_attr
353 integer(I4B) :: iper, iaux
359 nc_varname = trim(pkgname)//
'_'//trim(idt%mf6varname)
361 input_attr = this%input_attribute(pkgname, idt)
363 select case (idt%datatype)
365 call mem_setptr(int1d, idt%mf6varname, mempath)
366 call nc_export_int1d(this%ncid, this%dim_ids, this%x_dim, this%y_dim, &
367 this%var_ids, this%dis, int1d, nc_varname, pkgname, &
368 idt%tagname, this%gridmap_name, idt%shape, &
369 idt%longname, input_attr, this%deflate, this%shuffle, &
370 this%chunk_face, iper, this%nc_fname)
372 call mem_setptr(int2d, idt%mf6varname, mempath)
373 call nc_export_int2d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
374 int2d, nc_varname, pkgname, idt%tagname, &
375 this%gridmap_name, idt%shape, idt%longname, &
376 input_attr, this%deflate, this%shuffle, &
377 this%chunk_face, this%nc_fname)
379 call mem_setptr(int3d, idt%mf6varname, mempath)
380 call nc_export_int3d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
381 int3d, nc_varname, pkgname, idt%tagname, &
382 this%gridmap_name, idt%shape, idt%longname, &
383 input_attr, this%deflate, this%shuffle, &
384 this%chunk_face, this%nc_fname)
386 call mem_setptr(dbl1d, idt%mf6varname, mempath)
387 call nc_export_dbl1d(this%ncid, this%dim_ids, this%x_dim, this%y_dim, &
388 this%var_ids, this%dis, dbl1d, nc_varname, pkgname, &
389 idt%tagname, this%gridmap_name, idt%shape, &
390 idt%longname, input_attr, this%deflate, this%shuffle, &
391 this%chunk_face, this%nc_fname)
393 call mem_setptr(dbl2d, idt%mf6varname, mempath)
394 call nc_export_dbl2d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
395 dbl2d, nc_varname, pkgname, idt%tagname, &
396 this%gridmap_name, idt%shape, idt%longname, &
397 input_attr, this%deflate, this%shuffle, &
398 this%chunk_face, this%nc_fname)
400 call mem_setptr(dbl3d, idt%mf6varname, mempath)
401 call nc_export_dbl3d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
402 dbl3d, nc_varname, pkgname, idt%tagname, &
403 this%gridmap_name, idt%shape, idt%longname, &
404 input_attr, this%deflate, this%shuffle, &
405 this%chunk_face, iper, iaux, this%nc_fname)