From 26abde9716371bd78da59168bd8a6cf9858e2662 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 4 Sep 2009 09:36:05 +0100 Subject: [PATCH] added region option --- .../utilities/mesh/manipulation/createPatch/createPatch.C | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/applications/utilities/mesh/manipulation/createPatch/createPatch.C b/applications/utilities/mesh/manipulation/createPatch/createPatch.C index 40ba0efa..6374722e 100644 --- a/applications/utilities/mesh/manipulation/createPatch/createPatch.C +++ b/applications/utilities/mesh/manipulation/createPatch/createPatch.C @@ -516,11 +516,13 @@ void syncPoints int main(int argc, char *argv[]) { +# include "addRegionOption.H" argList::validOptions.insert("overwrite", ""); # include "setRootCase.H" # include "createTime.H" runTime.functionObjects().off(); +# include "createNamedPolyMesh.H" const bool overwrite = args.optionFound("overwrite"); @@ -532,6 +534,11 @@ int main(int argc, char *argv[]) ( "createPatchDict", runTime.system(), + ( + regionName != polyMesh::defaultRegion + ? regionName + : word::null + ), runTime, IOobject::MUST_READ, IOobject::NO_WRITE, @@ -551,7 +558,6 @@ int main(int argc, char *argv[]) coupledPolyPatch::matchTol = tol; -# include "createPolyMesh.H" const word oldInstance = mesh.pointsInstance(); const polyBoundaryMesh& patches = mesh.boundaryMesh(); -- 2.11.4.GIT