ENH: simplify use of case-relative paths

- provide relativePath() for argList and for Time.
  These are relative to the case globalPath().
  Eg,

     Info<< "output: " << runTime.relativePath(outputFile) << nl;
This commit is contained in:
Mark Olesen
2018-12-15 13:26:55 +01:00
parent ce6cd338a8
commit 455c8ef540
24 changed files with 271 additions and 134 deletions

View File

@ -380,7 +380,7 @@ bool Foam::functionObjects::vtkWrite::write()
);
Info<< " Internal : "
<< internalWriter->output().relative(time_.globalPath())
<< time_.relativePath(internalWriter->output())
<< endl;
// No sub-block for internal
@ -432,7 +432,7 @@ bool Foam::functionObjects::vtkWrite::write()
);
Info<< " Boundaries: "
<< writer->output().relative(time_.globalPath()) << nl;
<< time_.relativePath(writer->output()) << nl;
writer->writeTimeValue(timeValue);
@ -497,7 +497,7 @@ bool Foam::functionObjects::vtkWrite::write()
);
Info<< " Boundary : "
<< writer->output().relative(time_.globalPath()) << nl;
<< time_.relativePath(writer->output()) << nl;
writer->writeTimeValue(timeValue);
writer->writeGeometry();