Commit a967d05f authored by mattijs's avatar mattijs
Browse files

BUG: was reading mesh before setting coupledPolyPatch::matchTol

parent a4596d3f
......@@ -512,7 +512,9 @@ int main(int argc, char *argv[])
# include "setRootCase.H"
# include "createTime.H"
runTime.functionObjects().off();
# include "createNamedPolyMesh.H"
Foam::word meshRegionName = polyMesh::defaultRegion;
args.optionReadIfPresent("region", meshRegionName);
const bool overwrite = args.optionFound("overwrite");
......@@ -525,8 +527,8 @@ int main(int argc, char *argv[])
"createPatchDict",
runTime.system(),
(
regionName != polyMesh::defaultRegion
? regionName
meshRegionName != polyMesh::defaultRegion
? meshRegionName
: word::null
),
runTime,
......@@ -547,6 +549,7 @@ int main(int argc, char *argv[])
<< " to match up faces and points" << nl << endl;
coupledPolyPatch::matchTol = tol;
# include "createNamedPolyMesh.H"
const word oldInstance = mesh.pointsInstance();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment