diff --git a/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C b/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C index cc72e277da..941a655262 100644 --- a/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C +++ b/applications/utilities/preProcessing/snappyHexMeshConfig/blockMeshCartesianConfiguration.C @@ -37,20 +37,26 @@ const Foam::List Foam::blockMeshCartesianConfiguration::patches = // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -void Foam::blockMeshCartesianConfiguration::calcBlockMeshDict() +void Foam::blockMeshCartesianConfiguration::calcBlockMeshDict +( + const bool& boundsOpt +) { Info<< "Surface bounding box is " << bb_ << endl; - // Round the bounding box + // Round the bounding box if it is not specified with '-bounds' option const scalar roundFactor = roundingScale(bb_.minDim()); - roundBoundingBox(bb_, roundFactor); + if (!boundsOpt) + { + roundBoundingBox(bb_, roundFactor); + } // Set nCells with the lowest number of cells within the range 10-20 if (nCells_ == Vector