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

Fix directory automatic creation if missing

parent 60af96d6
No related branches found
No related tags found
1 merge request!197Fix directory automatic creation if missing
This commit is part of merge request !197. Comments created here will be created in the context of that merge request.
......@@ -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