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