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)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user