region lagrangian handling

This commit is contained in:
mattijs
2008-05-29 13:25:51 +01:00
parent 6b36879ae5
commit 2f6a6be48b

View File

@ -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;