Skip to content
Snippets Groups Projects
Commit 2f6a6be4 authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

region lagrangian handling

parent 6b36879a
Branches
Tags
No related merge requests found
......@@ -322,15 +322,15 @@ int main(int argc, char *argv[])
// Current mesh.
# include "createNamedMesh.H"
// VTK/ directory in the case
fileName fvPath(runTime.path()/"VTK");
// Directory of mesh (region0 gets filtered out)
fileName regionPrefix = "";
// make a directory called VTK in the case
fileName fvPath(runTime.path()/"VTK");
if (args.options().found("region"))
if (regionName != polyMesh::defaultRegion)
{
fvPath = fvPath/regionName;
regionPrefix = regionName;
}
if (dir(fvPath))
......@@ -340,6 +340,7 @@ int main(int argc, char *argv[])
args.options().found("time")
|| args.options().found("latestTime")
|| cellSetName.size() > 0
|| regionName != polyMesh::defaultRegion
)
{
Info<< "Keeping old VTK files in " << fvPath << nl << endl;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment