From c40460644fb3ac375f3b790a5a322ed8e030de90 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Thu, 5 Sep 2013 09:52:34 +0100 Subject: [PATCH] ENH: snappyHexMesh: move writeLevel into snappyHexMeshDict --- .../mesh/generation/snappyHexMesh/snappyHexMesh.C | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C index 4bef61c5e4d..e280fdd1b95 100644 --- a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C +++ b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C @@ -614,11 +614,6 @@ int main(int argc, char *argv[]) "boundBox", "simplify the surface using snappyHexMesh starting from a boundBox" ); - Foam::argList::addBoolOption - ( - "writeLevel", - "write pointLevel and cellLevel postprocessing files" - ); Foam::argList::addOption ( "patches", @@ -640,7 +635,6 @@ int main(int argc, char *argv[]) const bool overwrite = args.optionFound("overwrite"); const bool checkGeometry = args.optionFound("checkGeometry"); const bool surfaceSimplify = args.optionFound("surfaceSimplify"); - const bool writeLevel = args.optionFound("writeLevel"); autoPtr<fvMesh> meshPtr; @@ -852,6 +846,8 @@ int main(int argc, char *argv[]) autoLayerDriver::debug = debug; } + const bool writeLevel = meshDict.lookupOrDefault<bool>("writeLevel", false); + // Read geometry // ~~~~~~~~~~~~~ -- GitLab