85 integer(I4B), intent(in) :: iout
86 type(ModelDynamicPkgsType), pointer :: model_input
87 type(ExportModelType), pointer :: export_model
88 character(len=LENMEMPATH) :: modelnam_mempath, model_mempath, ext
89 integer(I4B), pointer :: disenum
90 integer(I4B) :: n
91 logical(LGP) :: found
92
94
95 allocate (export_model)
96
97
99
100
101 modelnam_mempath = &
106
107 call mem_setptr(disenum,
'DISENUM', model_mempath)
108
109
110 call export_model%init(model_input, disenum,
iout)
111
112
114 modelnam_mempath, found)
115 if (found) then
117 else
119 modelnam_mempath, found)
120 if (found) then
122 end if
123 end if
124
125 if (found) then
126 ext =
file_ext(export_model%nc_fname)
127 if (ext /= 'nc') then
128 errmsg =
'NetCDF output file name must use ".nc" extension. '// &
129 'Filename="'//trim(export_model%nc_fname)//'".'
131 call store_error_filename(export_model%modelfname)
132 end if
133 end if
134
135
136 call add_export_model(export_model)
137 end do
character(len=lenmempath) function create_mem_path(component, subcomponent, context)
returns the path to the memory object
@ netcdf_mesh2d
netcdf ugrid layered mesh export
@ netcdf_structured
netcdf structrured export
This module contains simulation variables.
character(len=maxcharlen) errmsg
error message string
character(len=linelength) idm_context
integer(i4b) iout
file unit number for simulation output
This module contains the SourceCommonModule.
character(len=lenpackagetype) function, public file_ext(filename)
input file extension