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:
@ -460,13 +460,7 @@ bool Foam::fileOperation::writeObject
|
|||||||
{
|
{
|
||||||
if (write)
|
if (write)
|
||||||
{
|
{
|
||||||
const fileName filePath
|
const fileName filePath(io.objectPath());
|
||||||
(
|
|
||||||
io.global()
|
|
||||||
? io.rootPath()/io.time().globalCaseName()
|
|
||||||
/io.instance()/io.db().dbDir()/io.local()/io.name()
|
|
||||||
: io.objectPath()
|
|
||||||
);
|
|
||||||
|
|
||||||
mkDir(filePath.path());
|
mkDir(filePath.path());
|
||||||
|
|
||||||
@ -507,6 +501,7 @@ bool Foam::fileOperation::writeObject
|
|||||||
|
|
||||||
IOobject::writeEndDivider(os);
|
IOobject::writeEndDivider(os);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user