From a5a326a83ba4525fcde6ad4e1ad54765bf11c7f8 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Thu, 13 Jun 2019 15:14:49 +0200 Subject: [PATCH] Update to extrudeMesh.C Use default mergeTolerance of 1e-4 to have backward compatibility with the tutorials. --- .../utilities/mesh/generation/extrudeMesh/extrudeMesh.C | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/applications/utilities/mesh/generation/extrudeMesh/extrudeMesh.C b/applications/utilities/mesh/generation/extrudeMesh/extrudeMesh.C index 42aa2f5b5..d2170d0a9 100644 --- a/applications/utilities/mesh/generation/extrudeMesh/extrudeMesh.C +++ b/applications/utilities/mesh/generation/extrudeMesh/extrudeMesh.C @@ -25,7 +25,8 @@ Description Extrude mesh from existing patch (by default outwards facing normals; optional flips faces) or from patch read from file. - Note: Merges close points so be careful. + Note: Merges close points so be careful. This can be controlled with the + optional mergeTolerance parameter (1e-4) by default. Type of extrusion prescribed by run-time selectable model. @@ -181,7 +182,8 @@ int main(int argc, char *argv[]) const vector span = bb.span(); // Read merge tolerance - const scalar mergeTolerance = readScalar(dict.lookup("mergeTolerance")); + const scalar mergeTolerance = + dict.lookupOrDefault("mergeTolerance", 1e-4); const scalar mergeDim = mergeTolerance*bb.minDim(); Info<< "Mesh bounding box : " << bb << nl