Skip to content
Snippets Groups Projects
Commit 4e4fd5f0 authored by Lars Pastewka's avatar Lars Pastewka
Browse files

BUG: Dumping to multiple files failed with an error message complaining about...

BUG: Dumping to multiple files failed with an error message complaining about a missing 'append yes' option.
parent 5e9d257e
No related branches found
No related tags found
No related merge requests found
......@@ -343,7 +343,7 @@ void DumpNetCDF::openfile()
if (framei <= 0) framei = nframes+framei+1;
if (framei < 1) framei = 1;
} else {
if (framei != 0)
if (framei != 0 && !multifile)
error->all(FLERR,"at keyword requires use of 'append yes'");
int dims[NC_MAX_VAR_DIMS];
......
......@@ -342,7 +342,7 @@ void DumpNetCDFMPIIO::openfile()
if (framei <= 0) framei = nframes+framei+1;
if (framei < 1) framei = 1;
} else {
if (framei != 0)
if (framei != 0 && !multifile)
error->all(FLERR,"at keyword requires use of 'append yes'");
int dims[NC_MAX_VAR_DIMS];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment