ENH: avoid blockMesh removal of files for special cases (issue #963)

- do not remove if the dictionary failed to load.
- do not remove if -blockTopology was used.
This commit is contained in:
Mark Olesen
2018-08-03 14:30:41 +02:00
parent 88e5334a9f
commit 319e09e32f
11 changed files with 409 additions and 366 deletions

View File

@ -1296,10 +1296,7 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
// Dump to obj file
//
Pout<< endl
<< "Dumping nearest surface feature points to nearestSamples.obj"
<< endl
<< "View this Lightwave-OBJ file with e.g. javaview" << endl
Pout<< "Dumping nearest surface feature points to nearestSamples.obj"
<< endl;
OFstream objStream("nearestSamples.obj");
@ -1423,8 +1420,8 @@ Foam::Map<Foam::label> Foam::surfaceFeatures::nearestSamples
{
// Dump to obj file
Pout<< "Dumping nearest surface edges to nearestEdges.obj\n"
<< "View this Lightwave-OBJ file with e.g. javaview\n" << endl;
Pout<< "Dumping nearest surface edges to nearestEdges.obj"
<< endl;
OFstream objStream("nearestEdges.obj");
@ -1577,8 +1574,8 @@ Foam::Map<Foam::pointIndexHit> Foam::surfaceFeatures::nearestEdges
{
// Dump to obj file
Pout<< "Dumping nearest surface feature edges to nearestEdges.obj\n"
<< "View this Lightwave-OBJ file with e.g. javaview\n" << endl;
Pout<< "Dumping nearest surface feature edges to nearestEdges.obj"
<< endl;
OFstream objStream("nearestEdges.obj");