mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use globalPath() instead of path()/".." for parallel
This commit is contained in:
@ -646,9 +646,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile()
|
||||
|
||||
fileName vtkPath
|
||||
(
|
||||
Pstream::parRun()
|
||||
? time_.path()/".."/functionObject::outputPrefix/"sets"/name()
|
||||
: time_.path()/functionObject::outputPrefix/"sets"/name()
|
||||
time_.globalPath()/functionObject::outputPrefix/"sets"/name()
|
||||
);
|
||||
if (mesh_.name() != fvMesh::defaultRegion)
|
||||
{
|
||||
|
||||
@ -389,16 +389,12 @@ void Foam::functionObjects::runTimePostPro::scene::saveImage
|
||||
|
||||
const Time& runTime = obr_.time();
|
||||
|
||||
const fileName relPath
|
||||
const fileName prefix
|
||||
(
|
||||
functionObject::outputPrefix/name_/obr_.time().timeName()
|
||||
);
|
||||
|
||||
fileName prefix
|
||||
(
|
||||
Pstream::parRun() ?
|
||||
runTime.path()/".."/relPath
|
||||
: runTime.path()/relPath
|
||||
runTime.globalPath()
|
||||
/ functionObject::outputPrefix
|
||||
/ name_
|
||||
/ runTime.timeName()
|
||||
);
|
||||
|
||||
mkDir(prefix);
|
||||
|
||||
Reference in New Issue
Block a user