mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: createPatch was reading mesh before setting matchTol so could not correct illegal mesh
This commit is contained in:
@ -521,7 +521,9 @@ int main(int argc, char *argv[])
|
|||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
runTime.functionObjects().off();
|
runTime.functionObjects().off();
|
||||||
# include "createNamedPolyMesh.H"
|
|
||||||
|
Foam::word meshRegionName = polyMesh::defaultRegion;
|
||||||
|
args.optionReadIfPresent("region", meshRegionName);
|
||||||
|
|
||||||
const bool overwrite = args.optionFound("overwrite");
|
const bool overwrite = args.optionFound("overwrite");
|
||||||
|
|
||||||
@ -534,8 +536,8 @@ int main(int argc, char *argv[])
|
|||||||
"createPatchDict",
|
"createPatchDict",
|
||||||
runTime.system(),
|
runTime.system(),
|
||||||
(
|
(
|
||||||
regionName != polyMesh::defaultRegion
|
meshRegionName != polyMesh::defaultRegion
|
||||||
? regionName
|
? meshRegionName
|
||||||
: word::null
|
: word::null
|
||||||
),
|
),
|
||||||
runTime,
|
runTime,
|
||||||
@ -556,6 +558,7 @@ int main(int argc, char *argv[])
|
|||||||
<< " to match up faces and points" << nl << endl;
|
<< " to match up faces and points" << nl << endl;
|
||||||
coupledPolyPatch::matchTol = tol;
|
coupledPolyPatch::matchTol = tol;
|
||||||
|
|
||||||
|
# include "createNamedPolyMesh.H"
|
||||||
|
|
||||||
const word oldInstance = mesh.pointsInstance();
|
const word oldInstance = mesh.pointsInstance();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user