ENH: cleanup ensightMesh method names and handling of internal vs boundary

- this removes the old 'magically' means of suppressing the internal
  mesh in favour of specifying it directly.
This commit is contained in:
Mark Olesen
2018-10-09 17:49:15 +02:00
parent 42bb497084
commit e4fac35d60
7 changed files with 348 additions and 185 deletions

View File

@ -154,6 +154,11 @@ int main(int argc, char *argv[])
"Suppress writing lagrangian positions and fields"
);
argList::addBoolOption
(
"noInternal",
"Do not generate file for mesh, only for patches"
);
argList::addBoolOption
(
"noPatches",
"Suppress writing any patches"
@ -162,8 +167,7 @@ int main(int argc, char *argv[])
(
"patches",
"wordRes",
"Specify particular patches to write - eg '(outlet \"inlet.*\")'. "
"An empty list suppresses writing the internalMesh."
"Specify particular patches to write - eg '(outlet \"inlet.*\")'."
);
argList::addOption
(
@ -267,7 +271,8 @@ int main(int argc, char *argv[])
// Output configuration (geometry related)
//
ensightMesh::options writeOpts(format);
writeOpts.noPatches(args.found("noPatches"));
writeOpts.useInternalMesh(!args.found("noInternal"));
writeOpts.useBoundaryMesh(!args.found("noPatches"));
if (args.found("patches"))
{