synchronisation at start of loop

This commit is contained in:
mattijs
2009-03-30 11:05:59 +01:00
parent fc09d219af
commit bf19a3c707

View File

@ -1212,6 +1212,17 @@ void Foam::meshRefinement::findCellZoneTopo
// by changing cell zone every time we cross a surface.
while (true)
{
// Synchronise regionToCellZone.
// Note:
// - region numbers are identical on all processors
// - keepRegion is identical ,,
// - cellZones are identical ,,
// This done at top of loop to account for geometric matching
// not being synchronised.
Pstream::listCombineGather(regionToCellZone, maxEqOp<label>());
Pstream::listCombineScatter(regionToCellZone);
bool changed = false;
// Internal faces
@ -1292,14 +1303,6 @@ void Foam::meshRefinement::findCellZoneTopo
{
break;
}
// Synchronise regionToCellZone.
// Note:
// - region numbers are identical on all processors
// - keepRegion is identical ,,
// - cellZones are identical ,,
Pstream::listCombineGather(regionToCellZone, maxEqOp<label>());
Pstream::listCombineScatter(regionToCellZone);
}