From ab17085c1a9943114dc293e7fdbde51bdac5f695 Mon Sep 17 00:00:00 2001 From: mattijs <m.janssens@opencfd.co.uk> Date: Mon, 7 Jul 2008 19:51:20 +0100 Subject: [PATCH] adapted to new syntax --- .../generation/snappyHexMesh/snappyHexMesh.C | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C index bd655dc2512..e53f8f68d30 100644 --- a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C +++ b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C @@ -76,16 +76,19 @@ int main(int argc, char *argv[]) ); // refinement parameters - const dictionary& refineDict = meshDict.subDict("refineDict"); + const dictionary& refineDict = meshDict.subDict("castellatedMeshControls"); + + // all surface geometry + const dictionary& geometryDict = meshDict.subDict("geometry"); // snap-to-surface parameters - const dictionary& snapDict = meshDict.subDict("snapDict"); + const dictionary& snapDict = meshDict.subDict("snapControls"); // mesh motion and mesh quality parameters - const dictionary& motionDict = meshDict.subDict("motionDict"); + const dictionary& motionDict = meshDict.subDict("meshQualityControls"); // layer addition parameters - const dictionary& layerDict = meshDict.subDict("layerDict"); + const dictionary& layerDict = meshDict.subDict("addLayersControls"); // Main meshing driver. Read surfaces. Determine initial intersections. @@ -93,13 +96,14 @@ int main(int argc, char *argv[]) ( mesh, meshDict, // global control parameters + geometryDict, refineDict, // refinement parameters decomposeDict ); - Switch wantRefine(meshDict.lookup("doRefine")); - Switch wantSnap(meshDict.lookup("doSnap")); - Switch wantLayers(meshDict.lookup("doLayers")); + Switch wantRefine(meshDict.lookup("castellatedMesh")); + Switch wantSnap(meshDict.lookup("snap")); + Switch wantLayers(meshDict.lookup("addLayers")); if (wantRefine) { -- GitLab