diff --git a/opm/autodiff/AutoDiffHelpers.hpp b/opm/autodiff/AutoDiffHelpers.hpp index c3dbd8d3a..23fe4f157 100644 --- a/opm/autodiff/AutoDiffHelpers.hpp +++ b/opm/autodiff/AutoDiffHelpers.hpp @@ -279,7 +279,7 @@ superset(const Eigen::Array& x, const IntVec& indices, const int n) { - return ::constructSupersetSparseMatrix(n, indices) * x; + return ::constructSupersetSparseMatrix(n, indices) * x.matrix(); }