diff --git a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C index d3040ffac3..898ddae241 100644 --- a/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C +++ b/applications/utilities/mesh/generation/snappyHexMesh/snappyHexMesh.C @@ -779,7 +779,7 @@ int main(int argc, char *argv[]) const bool overwrite = args.found("overwrite"); const bool checkGeometry = args.found("checkGeometry"); const bool surfaceSimplify = args.found("surfaceSimplify"); - const bool dryRun = args.optionFound("dry-run"); + const bool dryRun = args.found("dry-run"); if (dryRun) { @@ -788,7 +788,6 @@ int main(int argc, char *argv[]) } - #include "createNamedMesh.H" Info<< "Read mesh in = " << runTime.cpuTimeIncrement() << " s" << endl; diff --git a/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C b/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C index 86379e1752..ea6c35585d 100644 --- a/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C +++ b/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C @@ -303,26 +303,25 @@ bool Foam::distributedTriSurfaceMesh::read() } else { - procBb_[Pstream::myProcNo()] = - List(dict_.lookup("bounds")); + dict_.readEntry("bounds", procBb_[Pstream::myProcNo()]); Pstream::gatherList(procBb_); Pstream::scatterList(procBb_); // Wanted distribution type - distType_ = distributionTypeNames_.lookup("distributionType", dict_); + distType_ = distributionTypeNames_.get("distributionType", dict_); // Merge distance - mergeDist_ = readScalar(dict_.lookup("mergeDistance")); + dict_.readEntry("mergeDistance", mergeDist_); // Distribution type - surfaceClosed_ = dict_.lookupOrDefault("closed", false); + surfaceClosed_ = dict_.getOrDefault("closed", false); - outsideVolType_ = volumeType::UNKNOWN; - word volType; - if (dict_.readIfPresent("outsideVolumeType", volType)) - { - outsideVolType_ = volumeType::names[volType]; - } + outsideVolType_ = volumeType::names.getOrDefault + ( + "outsideVolumeType", + dict_, + volumeType::UNKNOWN + ); } return true; @@ -2669,7 +2668,7 @@ Foam::distributedTriSurfaceMesh::distributedTriSurfaceMesh // Optionally override settings from provided dictionary { // Wanted distribution type - distType_ = distributionTypeNames_.lookupOrDefault + distributionTypeNames_.readIfPresent ( "distributionType", dict_, @@ -2686,7 +2685,7 @@ Foam::distributedTriSurfaceMesh::distributedTriSurfaceMesh surfaceClosed_ = closed; } - outsideVolType_ = volumeType::names.lookupOrDefault + outsideVolType_ = volumeType::names.getOrDefault ( "outsideVolumeType", dict_, diff --git a/src/waveModels/derivedPointPatchFields/waveMaker/waveMakerPointPatchVectorField.C b/src/waveModels/derivedPointPatchFields/waveMaker/waveMakerPointPatchVectorField.C index 6bd34c6ad9..320d70a954 100644 --- a/src/waveModels/derivedPointPatchFields/waveMaker/waveMakerPointPatchVectorField.C +++ b/src/waveModels/derivedPointPatchFields/waveMaker/waveMakerPointPatchVectorField.C @@ -117,7 +117,7 @@ Foam::waveMakerPointPatchVectorField::waveMakerPointPatchVectorField ) : fixedValuePointPatchField(p, iF, dict, false), - motionType_(motionTypeNames.lookup("motionType", dict)), + motionType_(motionTypeNames.get("motionType", dict)), n_(dict.get("n")), gHat_(Zero), initialDepth_(dict.get("initialDepth")),