diff --git a/opm/autodiff/fastSparseOperations.hpp b/opm/autodiff/fastSparseOperations.hpp index b5747215a..84346aa8b 100644 --- a/opm/autodiff/fastSparseOperations.hpp +++ b/opm/autodiff/fastSparseOperations.hpp @@ -245,7 +245,7 @@ fastSparseAdd(Lhs& lhs, const Rhs& rhs) else { // default Eigen operator+= - lhs = lhs + rhs; + lhs += rhs; } } @@ -274,7 +274,7 @@ fastSparseSubstract(Lhs& lhs, const Rhs& rhs) else { // default Eigen operator-= - lhs = lhs - rhs; + lhs -= rhs; } }