Skip to content

Commit 5f6b2f5

Browse files
committed
use NC_CLASSIC_MODEL to remove dependence on hdf5
1 parent 6409e23 commit 5f6b2f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/outputs/mppnccombine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ int mppnccombine(int argc, char *argv[]) {
192192
free(ncoutfile);
193193
return (1);
194194
}
195-
if ((ncoutfile->ncfid = nccreate(outfilename, NC_NETCDF4)) == (-1)) {
195+
if ((ncoutfile->ncfid = nccreate(outfilename, NC_CLASSIC_MODEL)) == (-1)) {
196196
fprintf(stderr, "Error: cannot create the output netCDF file!\n");
197197
free(ncoutfile);
198198
return (1);

src/outputs/netcdf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void NetcdfOutput::WriteOutputFile(Mesh *pm, ParameterInput *pin, bool flag) {
105105
std::stringstream msg;
106106
int ifile;
107107

108-
nc_create(fname.c_str(), NC_NETCDF4, &ifile);
108+
nc_create(fname.c_str(), NC_CLASSIC_MODEL, &ifile);
109109

110110
// 2. coordinate structure
111111
int ncells1 = out_ie - out_is + 1;

0 commit comments

Comments
 (0)