extrudeMesh: Ensure the polyTopoChange runs on all processors if edge collaping has occurred on any

Resolves bug-report https://bugs.openfoam.org/view.php?id=3486
This commit is contained in:
Henry Weller
2020-04-22 10:40:55 +01:00
parent a4fb8c6460
commit 6e43847f5e

View File

@ -837,7 +837,7 @@ int main(int argc, char *argv[])
if (mergeDim > 0) if (mergeDim > 0)
{ {
Info<< "Collapsing edges < " << mergeDim << " ..." << nl << endl; Pout<< "Collapsing edges < " << mergeDim << " ..." << nl << endl;
// Edge collapsing engine // Edge collapsing engine
edgeCollapser collapser(mesh); edgeCollapser collapser(mesh);
@ -856,7 +856,7 @@ int main(int argc, char *argv[])
if (d < mergeDim) if (d < mergeDim)
{ {
Info<< "Merging edge " << e << " since length " << d Pout<< "Merging edge " << e << " since length " << d
<< " << " << mergeDim << nl; << " << " << mergeDim << nl;
collapseEdge[edgeI] = true; collapseEdge[edgeI] = true;
@ -882,6 +882,7 @@ int main(int argc, char *argv[])
// Put all modifications into meshMod // Put all modifications into meshMod
bool anyChange = collapser.setRefinement(allPointInfo, meshMod); bool anyChange = collapser.setRefinement(allPointInfo, meshMod);
reduce(anyChange, orOp<bool>());
if (anyChange) if (anyChange)
{ {