354 class(Mesh2dDisExportType),
intent(inout) :: this
355 character(len=*),
intent(in) :: pkgtype
356 character(len=*),
intent(in) :: pkgname
357 character(len=*),
intent(in) :: mempath
358 type(InputParamDefinitionType),
pointer,
intent(in) :: idt
359 integer(I4B),
dimension(:),
pointer,
contiguous :: int1d
360 integer(I4B),
dimension(:, :),
pointer,
contiguous :: int2d
361 integer(I4B),
dimension(:, :, :),
pointer,
contiguous :: int3d
362 real(DP),
dimension(:),
pointer,
contiguous :: dbl1d
363 real(DP),
dimension(:, :),
pointer,
contiguous :: dbl2d
364 real(DP),
dimension(:, :, :),
pointer,
contiguous :: dbl3d
365 character(len=LINELENGTH) :: nc_varname, input_attr
366 integer(I4B) :: iper, iaux
372 nc_varname = trim(pkgname)//
'_'//trim(idt%mf6varname)
374 input_attr = this%input_attribute(pkgname, idt)
376 select case (idt%datatype)
378 call mem_setptr(int1d, idt%mf6varname, mempath)
379 call nc_export_int1d(this%ncid, this%dim_ids, this%x_dim, this%y_dim, &
380 this%var_ids, this%dis, int1d, nc_varname, pkgname, &
381 idt%tagname, this%gridmap_name, idt%shape, &
382 idt%longname, input_attr, this%deflate, this%shuffle, &
383 this%chunk_face, iper, this%nc_fname)
385 call mem_setptr(int2d, idt%mf6varname, mempath)
386 call nc_export_int2d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
387 int2d, nc_varname, pkgname, idt%tagname, &
388 this%gridmap_name, idt%shape, idt%longname, &
389 input_attr, this%deflate, this%shuffle, &
390 this%chunk_face, this%nc_fname)
392 call mem_setptr(int3d, idt%mf6varname, mempath)
393 call nc_export_int3d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
394 int3d, nc_varname, pkgname, idt%tagname, &
395 this%gridmap_name, idt%shape, idt%longname, &
396 input_attr, this%deflate, this%shuffle, &
397 this%chunk_face, this%nc_fname)
399 call mem_setptr(dbl1d, idt%mf6varname, mempath)
400 call nc_export_dbl1d(this%ncid, this%dim_ids, this%x_dim, this%y_dim, &
401 this%var_ids, this%dis, dbl1d, nc_varname, pkgname, &
402 idt%tagname, this%gridmap_name, idt%shape, &
403 idt%longname, input_attr, this%deflate, this%shuffle, &
404 this%chunk_face, this%nc_fname)
406 call mem_setptr(dbl2d, idt%mf6varname, mempath)
407 call nc_export_dbl2d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
408 dbl2d, nc_varname, pkgname, idt%tagname, &
409 this%gridmap_name, idt%shape, idt%longname, &
410 input_attr, this%deflate, this%shuffle, &
411 this%chunk_face, this%nc_fname)
413 call mem_setptr(dbl3d, idt%mf6varname, mempath)
414 call nc_export_dbl3d(this%ncid, this%dim_ids, this%var_ids, this%dis, &
415 dbl3d, nc_varname, pkgname, idt%tagname, &
416 this%gridmap_name, idt%shape, idt%longname, &
417 input_attr, this%deflate, this%shuffle, &
418 this%chunk_face, iper, iaux, this%nc_fname)