36 type(ExportModelType),
pointer,
intent(inout) :: export_model
37 class(NumericalModelType),
pointer,
intent(in) :: num_model
38 class(Mesh2dDisExportType),
pointer :: ugrid_dis
39 class(Mesh2dDisvExportType),
pointer :: ugrid_disv
40 class(DisNCStructuredType),
pointer :: structured_dis
41 class(DisBaseType),
pointer :: disbase
43 select case (export_model%disenum)
51 disbase => num_model%dis
54 ugrid_dis%dis => disbase
58 call create_export_pkglist(ugrid_dis%pkglist, export_model%loaders, &
62 call ugrid_dis%init(export_model%modelname, export_model%modeltype, &
63 export_model%modelfname, export_model%nc_fname, &
71 export_model%nc_export => ugrid_dis
74 allocate (structured_dis)
77 disbase => num_model%dis
80 structured_dis%dis => disbase
84 call create_export_pkglist(structured_dis%pkglist, export_model%loaders, &
88 call structured_dis%init(export_model%modelname, export_model%modeltype, &
89 export_model%modelfname, export_model%nc_fname, &
94 call structured_dis%df()
97 export_model%nc_export => structured_dis
102 allocate (ugrid_disv)
105 disbase => num_model%dis
106 select type (disbase)
108 ugrid_disv%disv => disbase
112 call create_export_pkglist(ugrid_disv%pkglist, export_model%loaders, &
116 call ugrid_disv%init(export_model%modelname, export_model%modeltype, &
117 export_model%modelfname, export_model%nc_fname, &
125 export_model%nc_export => ugrid_disv
127 errmsg =
'DISV model discretization only &
128 &supported as UGRID NetCDF export. &
129 &Model='//trim(export_model%modelname)//
'.'
130 call store_error(errmsg)
131 call store_error_filename(export_model%modelfname)
134 errmsg =
'Unsupported discretization for NetCDF model export. &
135 &Model='//trim(export_model%modelname)//
'.'
136 call store_error(errmsg)
137 call store_error_filename(export_model%modelfname)
This module contains the DisNCStructuredModule.
This module contains the MeshDisModelModule.
This module contains the MeshDisvModelModule.
This module contains the NCModelExportModule.
@, public netcdf_structured
netcdf structrured export
@, public netcdf_mesh2d
netcdf ugrid layered mesh export