Commit 78866c06 authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix issue with output in parallel

parent 2c38d5c2
......@@ -486,6 +486,14 @@ std::string FieldIO::SetUpOutput(const std::string outname, bool perRank)
}
m_comm->Block();
// Sit in a loop and make sure target directory has been created
int created = 0;
while (!created)
{
created = fs::is_directory(specPath);
m_comm->AllReduce(created, ReduceMin);
}
}
else
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment