mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user