ENH: Do not do updateSizesAndAlignments in parallel.

This commit is contained in:
graham
2011-06-20 09:26:15 +01:00
parent 5a5f27a6b6
commit bb5576b56d

View File

@ -1507,9 +1507,13 @@ void Foam::conformalVoronoiMesh::updateSizesAndAlignments
const std::list<Point>& storePts
)
{
// This function is only used in serial, the background redistribution
// triggers this when unbalance is detected in parallel.
if
(
runTime_.run()
!Pstream::parRun()
&& runTime_.run()
&& runTime_.timeIndex()
% cvMeshControls().sizeAndAlignmentRebuildFrequency() == 0
)