From 1083044bc2f597910dc5e4272959bed79fa02e4a Mon Sep 17 00:00:00 2001
From: mattijs <mattijs>
Date: Wed, 6 Aug 2014 17:00:25 +0100
Subject: [PATCH] ENH: refineHexMesh: add -region option

---
 .../mesh/advanced/refineHexMesh/refineHexMesh.C       | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C
index 1f91954ea22..dc797fdcee3 100644
--- a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C
+++ b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C
@@ -53,7 +53,8 @@ using namespace Foam;
 
 int main(int argc, char *argv[])
 {
-#   include "addOverwriteOption.H"
+    #include "addOverwriteOption.H"
+    #include "addRegionOption.H"
     argList::validArgs.append("cellSet");
     argList::addBoolOption
     (
@@ -62,10 +63,10 @@ int main(int argc, char *argv[])
         " (default is to extend set)"
     );
 
-#   include "setRootCase.H"
-#   include "createTime.H"
+    #include "setRootCase.H"
+    #include "createTime.H"
     runTime.functionObjects().off();
-#   include "createMesh.H"
+    #include "createNamedMesh.H"
     const word oldInstance = mesh.pointsInstance();
 
     word cellSetName(args.args()[1]);
@@ -181,7 +182,7 @@ int main(int argc, char *argv[])
         mesh.movePoints(map().preMotionPoints());
     }
 
-    Pout<< "Refined from " << returnReduce(map().nOldCells(), sumOp<label>())
+    Info<< "Refined from " << returnReduce(map().nOldCells(), sumOp<label>())
         << " to " << mesh.globalData().nTotalCells() << " cells." << nl << endl;
 
     if (overwrite)
-- 
GitLab