mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add globalPath() to argList and TimePaths
- simply combines (rootPath()/globalCaseName())
This commit is contained in:
@ -8,7 +8,7 @@ if (Pstream::master())
|
||||
(
|
||||
new OFstream
|
||||
(
|
||||
runTime.rootPath()/runTime.globalCaseName()
|
||||
runTime.globalPath()
|
||||
/("logSummary." + runTime.timeName() + ".dat")
|
||||
)
|
||||
);
|
||||
|
||||
@ -8,7 +8,7 @@ if (Pstream::master())
|
||||
(
|
||||
new OFstream
|
||||
(
|
||||
runTime.rootPath()/runTime.globalCaseName()
|
||||
runTime.globalPath()
|
||||
/("logSummary." + runTime.timeName() + ".dat")
|
||||
)
|
||||
);
|
||||
|
||||
@ -525,7 +525,7 @@ void extractSurface
|
||||
fileName globalCasePath
|
||||
(
|
||||
runTime.processorCase()
|
||||
? runTime.path()/".."/outFileName
|
||||
? runTime.globalPath()/outFileName
|
||||
: runTime.path()/outFileName
|
||||
);
|
||||
globalCasePath.clean();
|
||||
|
||||
@ -2451,7 +2451,7 @@ int main(int argc, char *argv[])
|
||||
<< " on all processors" << nl << endl;
|
||||
instantList timeDirs;
|
||||
|
||||
const fileName basePath(args.rootPath()/args.globalCaseName());
|
||||
const fileName basePath(args.globalPath());
|
||||
|
||||
if (Pstream::master())
|
||||
{
|
||||
|
||||
@ -225,7 +225,7 @@ int main(int argc, char *argv[])
|
||||
fileName ensightDir = args.lookupOrDefault<word>("name", "EnSight");
|
||||
if (!ensightDir.isAbsolute())
|
||||
{
|
||||
ensightDir = args.rootPath()/args.globalCaseName()/ensightDir;
|
||||
ensightDir = args.globalPath()/ensightDir;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -194,7 +194,7 @@ int main(int argc, char *argv[])
|
||||
fileName ensightDir = args.lookupOrDefault<word>("name", "Ensight");
|
||||
if (!ensightDir.isAbsolute())
|
||||
{
|
||||
ensightDir = args.rootPath()/args.globalCaseName()/ensightDir;
|
||||
ensightDir = args.globalPath()/ensightDir;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@ -411,7 +411,7 @@ int main(int argc, char *argv[])
|
||||
? outFileName
|
||||
: (
|
||||
runTime.processorCase()
|
||||
? runTime.rootPath()/runTime.globalCaseName()/outFileName
|
||||
? runTime.globalPath()/outFileName
|
||||
: runTime.path()/outFileName
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user