MAINT: Only set append flag when not in multifile mode.
This commit is contained in:
@ -616,13 +616,14 @@ void DumpNetCDF::closefile()
|
|||||||
if (filewriter && singlefile_opened) {
|
if (filewriter && singlefile_opened) {
|
||||||
NCERR( nc_close(ncid) );
|
NCERR( nc_close(ncid) );
|
||||||
singlefile_opened = 0;
|
singlefile_opened = 0;
|
||||||
// append next time DumpNetCDF::openfile is called
|
|
||||||
append_flag = 1;
|
|
||||||
// write to next frame upon next open
|
// write to next frame upon next open
|
||||||
if (multifile)
|
if (multifile)
|
||||||
framei = 1;
|
framei = 1;
|
||||||
else
|
else {
|
||||||
|
// append next time DumpNetCDF::openfile is called
|
||||||
|
append_flag = 1;
|
||||||
framei++;
|
framei++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -592,13 +592,14 @@ void DumpNetCDFMPIIO::closefile()
|
|||||||
if (singlefile_opened) {
|
if (singlefile_opened) {
|
||||||
NCERR( ncmpi_close(ncid) );
|
NCERR( ncmpi_close(ncid) );
|
||||||
singlefile_opened = 0;
|
singlefile_opened = 0;
|
||||||
// append next time DumpNetCDFMPIIO::openfile is called
|
|
||||||
append_flag = 1;
|
|
||||||
// write to next frame upon next open
|
// write to next frame upon next open
|
||||||
if (multifile)
|
if (multifile)
|
||||||
framei = 1;
|
framei = 1;
|
||||||
else
|
else {
|
||||||
|
// append next time DumpNetCDFMPIIO::openfile is called
|
||||||
|
append_flag = 1;
|
||||||
framei++;
|
framei++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user