From 6bbf74eee51c7e52e33ff8863c415f3051628cf6 Mon Sep 17 00:00:00 2001 From: Vuko Vukcevic Date: Tue, 16 Apr 2019 11:23:13 +0200 Subject: [PATCH] Parallel bugfixes in donorBasedLayeredOverlapFringe --- .../donorBasedLayeredOverlapFringe.C | 58 ++++++++----------- 1 file changed, 24 insertions(+), 34 deletions(-) diff --git a/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C b/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C index 3486cd26f..b075e9999 100644 --- a/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C +++ b/src/overset/oversetMesh/oversetFringe/donorBasedLayeredOverlapFringe/donorBasedLayeredOverlapFringe.C @@ -340,14 +340,10 @@ void Foam::donorBasedLayeredOverlapFringe::calcAddressing() const else { // User did not specify centre points and the centre point holds - // the sum of all the points. Reduce the data + // the sum of all the points. Reduce centre point and divide it + // with global number of unique donors reduce(centrePoint, sumOp()); - const label nUniqueDonors = - returnReduce(donors.size(), sumOp