forked from lijiext/lammps
MAINT: Only set append flag when not in multifile mode.
This commit is contained in:
parent
da7be99cc4
commit
fbe42cda2d
|
@ -616,15 +616,16 @@ void DumpNetCDF::closefile()
|
|||
if (filewriter && singlefile_opened) {
|
||||
NCERR( nc_close(ncid) );
|
||||
singlefile_opened = 0;
|
||||
// append next time DumpNetCDF::openfile is called
|
||||
append_flag = 1;
|
||||
// write to next frame upon next open
|
||||
if (multifile)
|
||||
framei = 1;
|
||||
else
|
||||
else {
|
||||
// append next time DumpNetCDF::openfile is called
|
||||
append_flag = 1;
|
||||
framei++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
|
|
|
@ -592,15 +592,16 @@ void DumpNetCDFMPIIO::closefile()
|
|||
if (singlefile_opened) {
|
||||
NCERR( ncmpi_close(ncid) );
|
||||
singlefile_opened = 0;
|
||||
// append next time DumpNetCDFMPIIO::openfile is called
|
||||
append_flag = 1;
|
||||
// write to next frame upon next open
|
||||
if (multifile)
|
||||
framei = 1;
|
||||
else
|
||||
else {
|
||||
// append next time DumpNetCDFMPIIO::openfile is called
|
||||
append_flag = 1;
|
||||
framei++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
|
|
Loading…
Reference in New Issue