mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Consistency improvement for setting postProcessing directory name
This commit is contained in:
@ -202,7 +202,8 @@ Foam::label Foam::probes::prepare()
|
||||
{
|
||||
probeSubDir = probeSubDir/mesh_.name();
|
||||
}
|
||||
probeSubDir = "postProcessing"/probeSubDir/mesh_.time().timeName();
|
||||
probeSubDir =
|
||||
functionObject::outputPrefix/probeSubDir/mesh_.time().timeName();
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
|
||||
@ -97,18 +97,22 @@ Foam::sampledSets::sampledSets
|
||||
interpolationScheme_(word::null),
|
||||
writeFormat_(word::null)
|
||||
{
|
||||
const fileName relPath(functionObject::outputPrefix/name);
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
outputPath_ = mesh_.time().path()/".."/"postProcessing"/name;
|
||||
outputPath_ = mesh_.time().path()/".."/relPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
outputPath_ = mesh_.time().path()/"postProcessing"/name;
|
||||
outputPath_ = mesh_.time().path()/relPath;
|
||||
}
|
||||
|
||||
if (mesh_.name() != fvMesh::defaultRegion)
|
||||
{
|
||||
outputPath_ = outputPath_/mesh_.name();
|
||||
}
|
||||
|
||||
outputPath_.clean(); // Remove unneeded ".."
|
||||
|
||||
read(dict);
|
||||
@ -132,18 +136,22 @@ Foam::sampledSets::sampledSets
|
||||
interpolationScheme_(word::null),
|
||||
writeFormat_(word::null)
|
||||
{
|
||||
const fileName relPath(functionObject::outputPrefix/name);
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
outputPath_ = mesh_.time().path()/".."/"postProcessing"/name;
|
||||
outputPath_ = mesh_.time().path()/".."/relPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
outputPath_ = mesh_.time().path()/"postProcessing"/name;
|
||||
outputPath_ = mesh_.time().path()/relPath;
|
||||
}
|
||||
|
||||
if (mesh_.name() != fvMesh::defaultRegion)
|
||||
{
|
||||
outputPath_ = outputPath_/mesh_.name();
|
||||
}
|
||||
|
||||
outputPath_.clean(); // Remove unneeded ".."
|
||||
|
||||
read(dict);
|
||||
|
||||
@ -138,14 +138,17 @@ Foam::sampledSurfaces::sampledSurfaces
|
||||
changedGeom_(),
|
||||
formatter_(nullptr)
|
||||
{
|
||||
const fileName relPath(functionObject::outputPrefix/name);
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
outputPath_ = mesh_.time().path()/".."/"postProcessing"/name;
|
||||
outputPath_ = mesh_.time().path()/".."/relPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
outputPath_ = mesh_.time().path()/"postProcessing"/name;
|
||||
outputPath_ = mesh_.time().path()/relPath;
|
||||
}
|
||||
|
||||
outputPath_.clean(); // Remove unneeded ".."
|
||||
|
||||
read(dict);
|
||||
@ -174,14 +177,17 @@ Foam::sampledSurfaces::sampledSurfaces
|
||||
{
|
||||
read(dict);
|
||||
|
||||
const fileName relPath(functionObject::outputPrefix/name);
|
||||
|
||||
if (Pstream::parRun())
|
||||
{
|
||||
outputPath_ = time_.path()/".."/"postProcessing"/name;
|
||||
outputPath_ = time_.path()/".."/relPath;
|
||||
}
|
||||
else
|
||||
{
|
||||
outputPath_ = time_.path()/"postProcessing"/name;
|
||||
outputPath_ = time_.path()/relPath;
|
||||
}
|
||||
|
||||
outputPath_.clean(); // Remove unneeded ".."
|
||||
|
||||
read(dict);
|
||||
|
||||
Reference in New Issue
Block a user