mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -786,7 +786,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile()
|
||||
propsDict.add
|
||||
(
|
||||
"file",
|
||||
scalarVtkFile.relative(time_.globalPath(), true)
|
||||
time_.relativePath(scalarVtkFile, true)
|
||||
);
|
||||
setProperty(fieldName, propsDict);
|
||||
}
|
||||
@ -798,7 +798,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile()
|
||||
propsDict.add
|
||||
(
|
||||
"file",
|
||||
vectorVtkFile.relative(time_.globalPath(), true)
|
||||
time_.relativePath(vectorVtkFile, true)
|
||||
);
|
||||
setProperty(fieldName, propsDict);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user