Commit 38130d73 authored by Dave Moxey's avatar Dave Moxey Committed by Spencer Sherwin
Browse files

Possible fix for parallel filesystem issue, breaks if shared filesystem not used

parent 150bfee8
......@@ -1145,7 +1145,12 @@ namespace Nektar
{
try
{
fs::remove_all(specPath);
if (rank == 0)
{
fs::remove_all(specPath);
}
m_comm->Block();
}
catch (fs::filesystem_error& e)
{
......@@ -1178,7 +1183,12 @@ namespace Nektar
// Create the destination directory
try
{
fs::create_directory(specPath);
if (rank == 0)
{
fs::create_directory(specPath);
}
m_comm->Block();
}
catch (fs::filesystem_error& e)
{
......
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