Commit 3825dbeb authored by Dave Moxey's avatar Dave Moxey Committed by Spencer Sherwin
Browse files

Fix compiler error

parent cd8a8ee2
......@@ -1149,8 +1149,13 @@ namespace Nektar
// Directory name if in parallel, regular filename if in serial
fs::path specPath (outname);
// Full filename to attempt parallel deletion
fs::path fulloutname;
// Pad rank to 8char filenames, e.g. P0000000.fld
boost::format pad("P%1$07d.fld");
pad % m_comm->GetRank();
// Generate full path name
fs::path poutfile(pad.str());
fs::path fulloutname = specPath / poutfile;
if (nprocs == 1)
{
......@@ -1196,6 +1201,11 @@ namespace Nektar
{
fs::remove_all(specPath);
}
catch (fs::filesystem_error& e)
{
ASSERTL0(e.code().value() == berrc::no_such_file_or_directory,
"Filesystem error: " + string(e.what()));
}
}
m_comm->Block();
......@@ -1275,14 +1285,6 @@ namespace Nektar
m_comm->Send(0, idlist);
}
// Pad rank to 8char filenames, e.g. P0000000.fld
boost::format pad("P%1$07d.fld");
pad % m_comm->GetRank();
// Generate full path name
fs::path poutfile(pad.str());
fs::path fulloutname = specPath / poutfile;
// Return the full path to the partition for this process
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