From 3447481b024dfefbbb4d46ba22c01355c52791ca Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sun, 14 Jul 2013 21:18:40 +0200
Subject: [PATCH] [Cleanup] Do not use addProduct() needlessly

---
 dune/tectonic/myblockproblem.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh
index d9b01fb0..4de7a709 100644
--- a/dune/tectonic/myblockproblem.hh
+++ b/dune/tectonic/myblockproblem.hh
@@ -149,7 +149,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
     for (size_t i = 0; i < problem.A.N(); ++i) {
       auto const end = problem.A[i].end();
       for (auto it = problem.A[i].begin(); it != end; ++it)
-        Arithmetic::addProduct(linearization.A[i][it.index()], 1.0, *it);
+        linearization.A[i][it.index()] += *it;
     }
 
     // compute nonlinearity part of hessian
-- 
GitLab