1651 real(DP),
dimension(:),
pointer,
contiguous,
intent(in) :: p_mem
1652 integer(I4B),
intent(in) :: ncid
1653 type(StructuredNCDimIdType),
intent(inout) :: dim_ids
1654 type(StructuredNCVarIdType),
intent(inout) :: var_ids
1655 type(DisType),
pointer,
intent(in) :: dis
1656 type(InputParamDefinitionType),
pointer,
intent(in) :: idt
1657 character(len=*),
intent(in) :: mempath
1658 character(len=*),
intent(in) :: nc_tag
1659 character(len=*),
intent(in) :: pkgname
1660 character(len=*),
intent(in) :: gridmap_name
1661 logical(LGP),
intent(in) :: latlon
1662 integer(I4B),
intent(in) :: deflate
1663 integer(I4B),
intent(in) :: shuffle
1664 integer(I4B),
intent(in) :: chunk_z
1665 integer(I4B),
intent(in) :: chunk_y
1666 integer(I4B),
intent(in) :: chunk_x
1667 integer(I4B),
intent(in) :: iper
1668 integer(I4B),
intent(in) :: iaux
1669 character(len=*),
intent(in) :: nc_fname
1670 integer(I4B) :: var_id, axis_sz
1671 character(len=LINELENGTH) :: varname, longname
1673 if (idt%shape ==
'NROW' .or. &
1674 idt%shape ==
'NCOL' .or. &
1675 idt%shape ==
'NCPL' .or. &
1676 idt%shape ==
'NAUX NCPL')
then
1679 select case (idt%shape)
1686 varname = export_varname(pkgname, idt%tagname, mempath)
1687 longname = export_longname(idt%longname, pkgname, idt%tagname, mempath, &
1689 component_type=idt%component_type, &
1690 subcomponent_type=idt%subcomponent_type)
1693 call nf_verify(nf90_redef(ncid), nc_fname)
1694 call nf_verify(nf90_def_var(ncid, varname, nf90_double, &
1695 (/axis_sz/), var_id), &
1699 call ncvar_deflate(ncid, var_id, deflate, shuffle, nc_fname)
1702 call nf_verify(nf90_put_att(ncid, var_id,
'_FillValue', &
1703 (/nf90_fill_double/)), nc_fname)
1704 call nf_verify(nf90_put_att(ncid, var_id,
'long_name', &
1705 longname), nc_fname)
1708 call ncvar_mf6attr(ncid, var_id, iaux, nc_tag, nc_fname)
1711 call nf_verify(nf90_enddef(ncid), nc_fname)
1712 call nf_verify(nf90_put_var(ncid, var_id, p_mem), &
1716 call nf_verify(nf90_put_var(ncid, &
1717 var_ids%export, p_mem, &
1718 start=(/1, 1,
kper/), &
1719 count=(/dis%ncol, dis%nrow, 1/)), nc_fname)
1725 varname = export_varname(pkgname, idt%tagname, mempath, iaux=iaux)
1726 longname = export_longname(idt%longname, pkgname, idt%tagname, mempath, &
1728 component_type=idt%component_type, &
1729 subcomponent_type=idt%subcomponent_type)
1732 call nf_verify(nf90_redef(ncid), nc_fname)
1733 call nf_verify(nf90_def_var(ncid, varname, nf90_double, &
1734 (/dim_ids%x, dim_ids%y, dim_ids%layer/), &
1738 call ncvar_chunk3d(ncid, var_id, chunk_x, chunk_y, chunk_z, nc_fname)
1740 call ncvar_deflate(ncid, var_id, deflate, shuffle, nc_fname)
1743 call nf_verify(nf90_put_att(ncid, var_id,
'_FillValue', &
1744 (/nf90_fill_double/)), nc_fname)
1745 call nf_verify(nf90_put_att(ncid, var_id,
'long_name', &
1746 longname), nc_fname)
1749 call ncvar_gridmap(ncid, var_id, gridmap_name, latlon, .true., &
1751 call ncvar_mf6attr(ncid, var_id, iaux, nc_tag, nc_fname)
1754 call nf_verify(nf90_enddef(ncid), nc_fname)
1755 call nf_verify(nf90_put_var(ncid, var_id, p_mem, start=(/1, 1, 1/), &
1756 count=(/dis%ncol, dis%nrow, dis%nlay/)), &
1760 call nf_verify(nf90_put_var(ncid, &
1761 var_ids%export, p_mem, &
1762 start=(/1, 1, 1,
kper/), &
1763 count=(/dis%ncol, dis%nrow, dis%nlay, 1/)), &
integer(i4b), pointer, public kper
current stress period number