mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
region lagrangian handling
This commit is contained in:
@ -322,15 +322,15 @@ int main(int argc, char *argv[])
|
|||||||
// Current mesh.
|
// Current mesh.
|
||||||
# include "createNamedMesh.H"
|
# include "createNamedMesh.H"
|
||||||
|
|
||||||
|
// VTK/ directory in the case
|
||||||
|
fileName fvPath(runTime.path()/"VTK");
|
||||||
// Directory of mesh (region0 gets filtered out)
|
// Directory of mesh (region0 gets filtered out)
|
||||||
fileName regionPrefix = "";
|
fileName regionPrefix = "";
|
||||||
|
|
||||||
// make a directory called VTK in the case
|
if (regionName != polyMesh::defaultRegion)
|
||||||
fileName fvPath(runTime.path()/"VTK");
|
|
||||||
|
|
||||||
if (args.options().found("region"))
|
|
||||||
{
|
{
|
||||||
fvPath = fvPath/regionName;
|
fvPath = fvPath/regionName;
|
||||||
|
regionPrefix = regionName;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dir(fvPath))
|
if (dir(fvPath))
|
||||||
@ -340,6 +340,7 @@ int main(int argc, char *argv[])
|
|||||||
args.options().found("time")
|
args.options().found("time")
|
||||||
|| args.options().found("latestTime")
|
|| args.options().found("latestTime")
|
||||||
|| cellSetName.size() > 0
|
|| cellSetName.size() > 0
|
||||||
|
|| regionName != polyMesh::defaultRegion
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
Info<< "Keeping old VTK files in " << fvPath << nl << endl;
|
Info<< "Keeping old VTK files in " << fvPath << nl << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user