From 4b3ac74cf44d7033b80404c4349d6de89fe78111 Mon Sep 17 00:00:00 2001
From: Van Dung Nguyen <vandung.nguyen@ulg.ac.be>
Date: Mon, 22 Apr 2013 08:58:26 +0000
Subject: [PATCH] fix bug

---
 Solver/linearSystemPETSc.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Solver/linearSystemPETSc.hpp b/Solver/linearSystemPETSc.hpp
index f8fc4204e6..ac1d2f06f7 100644
--- a/Solver/linearSystemPETSc.hpp
+++ b/Solver/linearSystemPETSc.hpp
@@ -278,7 +278,7 @@ void linearSystemPETSc<scalar>::zeroMatrix()
       int value = _entriesPreAllocated ? 1 : 0;
       int sumValue = 0;
       MPI_Allreduce((void*)&value, (void*)&sumValue, 1, MPI_INT, MPI_SUM, _comm);
-      if ((sumValue > 0) &&(sumValue < Msg::GetCommSize()) && !_entriesPreAllocated){
+      if ((sumValue >= 0) &&(sumValue < Msg::GetCommSize()) && !_entriesPreAllocated){
         preAllocateEntries();
       }
     }
-- 
GitLab