From e7e64a8134df2f1fbd9b29acfedffeb145157388 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Tue, 11 Oct 2016 10:03:25 +0100 Subject: [PATCH] Bugfix: remove locking: if processor does not touch GGI, skip it --- .../AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C | 6 ++++++ 1 file changed, 6 insertions(+) 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 d314e3720..44e9ee8dd 100644 --- a/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C +++ b/src/foam/matrices/lduMatrix/solvers/AMG/interfaces/ggiAMGInterface/ggiAMGInterface.C @@ -250,6 +250,12 @@ Foam::ggiAMGInterface::ggiAMGInterface << fineGgiInterface_.interfaceSize() << ": " << lTime_.elapsedCpuTime() << endl; + // If the processor is not in the GGI comm, escape. HJ, 10/Oct/2016 + if (Pstream::myProcNo(comm()) == -1) + { + return; + } + // Note: local addressing contains only local faces const labelList& fineZa = fineGgiInterface_.zoneAddressing();