From cda742ab0eb000dfc61d65c29962160f840bb2b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Fri, 5 Dec 2014 13:10:33 +0100 Subject: [PATCH] Redo commit 6f55c862 after rebasing. --- opm/autodiff/fastSparseProduct.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/autodiff/fastSparseProduct.hpp b/opm/autodiff/fastSparseProduct.hpp index 0ec72146c..f43503e5a 100644 --- a/opm/autodiff/fastSparseProduct.hpp +++ b/opm/autodiff/fastSparseProduct.hpp @@ -102,10 +102,10 @@ void fastSparseProduct(const Lhs& lhs, const Rhs& rhs, ResultType& res) const Scalar y = rhsIt.value(); for (typename Lhs::InnerIterator lhsIt(lhs, rhsIt.index()); lhsIt; ++lhsIt) { - const Index i = lhsIt.index(); const Scalar val = lhsIt.value() * y; if( std::abs( val ) > epsilon ) { + const Index i = lhsIt.index(); if(!mask[i]) { mask[i] = true;