fileOperation: Reverted path change in writeObject

so that time-dependent global objects are written to processor?/<time>/uniform
when running in parallel.
This commit is contained in:
Henry Weller
2021-08-04 15:39:38 +01:00
parent 1502ad7b17
commit cd1842d276

View File

@ -460,13 +460,7 @@ bool Foam::fileOperation::writeObject
{
if (write)
{
const fileName filePath
(
io.global()
? io.rootPath()/io.time().globalCaseName()
/io.instance()/io.db().dbDir()/io.local()/io.name()
: io.objectPath()
);
const fileName filePath(io.objectPath());
mkDir(filePath.path());
@ -507,6 +501,7 @@ bool Foam::fileOperation::writeObject
IOobject::writeEndDivider(os);
}
return true;
}