TimePaths: Rationalised path methods

This commit is contained in:
Will Bainbridge
2021-06-24 12:03:16 +01:00
parent 77213b62d1
commit dae463dbd8
14 changed files with 82 additions and 164 deletions

View File

@ -35,6 +35,7 @@ License
#include "interpolationCellPoint.H"
#include "PatchTools.H"
#include "mapPolyMesh.H"
#include "writeFile.H"
#include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -575,16 +576,13 @@ bool Foam::functionObjects::streamLine::write()
fileName vtkPath
(
Pstream::parRun()
? runTime.path()/".."/"postProcessing"/"sets"/name()
: runTime.path()/"postProcessing"/"sets"/name()
runTime.globalPath()/writeFile::outputPrefix/"sets"/name()
);
if (mesh_.name() != fvMesh::defaultRegion)
{
vtkPath = vtkPath/mesh_.name();
}
vtkPath = vtkPath/mesh_.time().timeName();
vtkPath.clean();
mkDir(vtkPath);
// Convert track positions