diff --git a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C index 4bef61c5e4d64d3e055fba69912e42ea0ff9eb8c..e280fdd1b9511d9ba25f6c12dfbca4ed184582bd 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 // ~~~~~~~~~~~~~