From 26b7f120a89bae8628651d5d49c455bf87f35747 Mon Sep 17 00:00:00 2001
From: Sebastian Eibl <sebastian.eibl@fau.de>
Date: Thu, 14 Dec 2017 11:08:50 +0100
Subject: [PATCH] [BUGFIX] possible wrong early abort

---
 src/blockforest/BlockForest.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/blockforest/BlockForest.cpp b/src/blockforest/BlockForest.cpp
index 5aa3323e8..8d99f0abe 100644
--- a/src/blockforest/BlockForest.cpp
+++ b/src/blockforest/BlockForest.cpp
@@ -982,7 +982,7 @@ void BlockForest::refresh()
          for( auto phantom = phantomBlocks.begin(); phantom != phantomBlocks.end() && !performUpdate; ++phantom )
          {
             const auto & sourceProcess = phantom->second->getSourceProcess();
-            for( auto it = sourceProcess.begin(); it != sourceProcess.end(); ++it )
+            for( auto it = sourceProcess.begin(); it != sourceProcess.end() && !performUpdate; ++it )
                performUpdate = ( *it != process_ );
          }
          mpi::allReduceInplace( performUpdate, mpi::LOGICAL_OR );
-- 
GitLab