diff --git a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C index 0cafaf63b5..d9f1dea5f4 100644 --- a/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C +++ b/applications/utilities/finiteArea/makeFaMesh/makeFaMesh.C @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) wordList polyMeshPatches ( - faMeshDefinition.lookup("polyMeshPatches") + faMeshDefinition.get("polyMeshPatches") ); const dictionary& bndDict = faMeshDefinition.subDict("boundary"); @@ -107,9 +107,9 @@ int main(int argc, char *argv[]) faPatches[patchI].name_ = faPatchNames[patchI]; - faPatches[patchI].type_ = word(curPatchDict.lookup("type")); + faPatches[patchI].type_ = curPatchDict.get("type"); - const word ownName = curPatchDict.lookup("ownerPolyPatch"); + const word ownName(curPatchDict.get("ownerPolyPatch")); faPatches[patchI].ownPolyPatchID_ = mesh.boundaryMesh().findPatchID(ownName); @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) << exit(FatalError); } - const word neiName = curPatchDict.lookup("neighbourPolyPatch"); + const word neiName(curPatchDict.get("neighbourPolyPatch")); faPatches[patchI].ngbPolyPatchID_ = mesh.boundaryMesh().findPatchID(neiName); diff --git a/applications/utilities/mesh/advanced/selectCells/selectCells.C b/applications/utilities/mesh/advanced/selectCells/selectCells.C index fef71bbd87..31f918a919 100644 --- a/applications/utilities/mesh/advanced/selectCells/selectCells.C +++ b/applications/utilities/mesh/advanced/selectCells/selectCells.C @@ -357,13 +357,13 @@ int main(int argc, char *argv[]) ) ); - fileName surfName(refineDict.lookup("surface")); + fileName surfName(refineDict.get("surface")); pointField outsidePts(refineDict.lookup("outsidePoints")); - bool useSurface(readBool(refineDict.lookup("useSurface"))); - bool selectCut(readBool(refineDict.lookup("selectCut"))); - bool selectInside(readBool(refineDict.lookup("selectInside"))); - bool selectOutside(readBool(refineDict.lookup("selectOutside"))); - scalar nearDist(readScalar(refineDict.lookup("nearDistance"))); + const bool useSurface(refineDict.get("useSurface")); + const bool selectCut(refineDict.get("selectCut")); + const bool selectInside(refineDict.get("selectInside")); + const bool selectOutside(refineDict.get("selectOutside")); + const scalar nearDist(refineDict.get("nearDistance")); if (useSurface) diff --git a/applications/utilities/mesh/advanced/snappyRefineMesh/snappyRefineMesh.C b/applications/utilities/mesh/advanced/snappyRefineMesh/snappyRefineMesh.C index 6cf0973059..ee395ee800 100644 --- a/applications/utilities/mesh/advanced/snappyRefineMesh/snappyRefineMesh.C +++ b/applications/utilities/mesh/advanced/snappyRefineMesh/snappyRefineMesh.C @@ -677,22 +677,22 @@ int main(int argc, char *argv[]) ) ); - fileName surfName(refineDict.lookup("surface")); + fileName surfName(refineDict.get("surface")); surfName.expand(); - label nCutLayers(readLabel(refineDict.lookup("nCutLayers"))); - label cellLimit(readLabel(refineDict.lookup("cellLimit"))); - bool selectCut(readBool(refineDict.lookup("selectCut"))); - bool selectInside(readBool(refineDict.lookup("selectInside"))); - bool selectOutside(readBool(refineDict.lookup("selectOutside"))); - bool selectHanging(readBool(refineDict.lookup("selectHanging"))); + const label nCutLayers(refineDict.get