Commit bc4ec120 authored by Douglas Serson's avatar Douglas Serson Committed by Dave Moxey
Browse files

Fix issue with output in parallel

(cherry picked from commit 78866c06)
parent 40c141ce
...@@ -1080,7 +1080,6 @@ namespace Nektar ...@@ -1080,7 +1080,6 @@ namespace Nektar
} }
} }
/** /**
* \brief add information about provenance and fieldmetadata * \brief add information about provenance and fieldmetadata
*/ */
...@@ -1277,6 +1276,14 @@ namespace Nektar ...@@ -1277,6 +1276,14 @@ namespace Nektar
m_comm->Block(); 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);
}
// Return the full path to the partition for this process // Return the full path to the partition for this process
return LibUtilities::PortablePath(fulloutname); return LibUtilities::PortablePath(fulloutname);
} }
......
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