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)
52 disbase => num_model%dis
55 ugrid_dis%dis => disbase
59 call create_export_pkglist(ugrid_dis%pkglist, export_model%loaders, &
63 call ugrid_dis%init(export_model%modelname, export_model%modeltype, &
64 export_model%modelfname, export_model%disenum, &
71 export_model%nc_export => ugrid_dis
75 allocate (structured_dis)
78 disbase => num_model%dis
81 structured_dis%dis => disbase
85 call create_export_pkglist(structured_dis%pkglist, export_model%loaders, &
89 call structured_dis%init(export_model%modelname, export_model%modeltype, &
90 export_model%modelfname, export_model%disenum, &
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%disenum, &
124 export_model%nc_export => ugrid_disv
126 errmsg =
'DISV model discretization only &
127 &supported as UGRID NetCDF export. &
128 &Model='//trim(export_model%modelname)//
'.'
129 call store_error(errmsg)
130 call store_error_filename(export_model%modelfname)
133 errmsg =
'Unsupported discretization for NetCDF model export. &
134 &Model='//trim(export_model%modelname)//
'.'
135 call store_error(errmsg)
136 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_ugrid
netcdf mesh export