Skip to content
Snippets Groups Projects
Commit 1466a8ac authored by Dave Moxey's avatar Dave Moxey
Browse files

Attempted fix for directory creation

parent c2214494
No related branches found
No related tags found
No related merge requests found
......@@ -1182,6 +1182,14 @@ namespace Nektar
// target directory has been created by the root process
m_comm->Block();
// Sit in a loop and make sure target directory has been created
int created = 0;
do
{
created = fs::is_directory(specPath);
m_comm->AllReduce(created, ReduceMin);
} while (!created);
// Pad rank to 8char filenames, e.g. P0000000.fld
boost::format pad("P%1$07d.fld");
pad % m_comm->GetRank();
......
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