Skip to content
Snippets Groups Projects
Commit ceb7d14c authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Merge branch 'fix/gnuplot-writers' into 'develop'

Fix directory automatic creation if missing

See merge request !197
parents 60af96d6 4092db01
No related branches found
No related tags found
1 merge request!197Fix directory automatic creation if missing
......@@ -216,6 +216,8 @@ GnuplotWriter1D::_write(const MeshType& mesh,
throw NormalError("cannot store both node and cell data in the same gnuplot file");
}
createDirectoryIfNeeded(_getFilename());
std::ofstream fout;
if (parallel::rank() == 0) {
......
......@@ -196,6 +196,8 @@ GnuplotWriterRaw::_write(const MeshType& mesh,
throw NormalError("cannot store both node and cell data in the same gnuplot file");
}
createDirectoryIfNeeded(_getFilename());
std::ofstream fout;
if (parallel::rank() == 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment