From 9604997fc1405c90ca56be8d07017350b2ef4817 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carsten=20Gr=C3=A4ser?= <graeser@mi.fu-berlin.de>
Date: Wed, 21 Jun 2017 13:59:53 +0200
Subject: [PATCH] Fix bug in global assembler

---
 src/05-poisson-problem.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/05-poisson-problem.hh b/src/05-poisson-problem.hh
index 8f4cac5..6c19093 100644
--- a/src/05-poisson-problem.hh
+++ b/src/05-poisson-problem.hh
@@ -170,7 +170,7 @@ void assemblePoissonProblemPQ1(
         matrixBuilder[globalI][globalJ] += elementMatrix[i][j];
       }
 
-      rhs[globalI] = elementRhs[i];
+      rhs[globalI] += elementRhs[i];
     }
   }
   matrix.compress();
-- 
GitLab