From 0febbe591925ee4eab0bbbe11de8a6a87fbb2ba4 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sat, 8 Oct 2016 19:05:25 +0100 Subject: [PATCH] Use optimised global reduce for labelList --- .../solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C b/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C index cd7dd75a1..32c935c5f 100644 --- a/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C +++ b/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C @@ -97,7 +97,7 @@ void Foam::ggiAMGInterface::initFastReduce() const // Note: reduce with a comm will only be present on processors containing // master or slave faces. Other processors created a dummy map above // HJ, 20/Sep/2016 - reduce(zoneProcID, maxOp >(), tag(), comm()); + reduce(zoneProcID, maxOp(), tag(), comm()); // Find out where my zone data is coming from labelList nRecv(Pstream::nProcs(), 0); @@ -739,8 +739,8 @@ Foam::ggiAMGInterface::ggiAMGInterface // Optimised comm: Wait for info from previous processor, add your // number of coarse faces and pass to next processor - reduce(nCoarseFacesPerProc, sumOp >(), tag(), comm()); - + reduce(nCoarseFacesPerProc, sumOp >(), tag(), comm()); + Pout<< "nCoarseFacesPerProc: " << nCoarseFacesPerProc << endl; // Coarse global face zone is assembled by adding all faces from proc0, // followed by all faces from proc1 etc. // Therefore, on procN, my master offset -- 2.11.4.GIT