From 84d163e9fa5630255d649a8111495fc7c0ee5472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 16 May 2013 14:44:16 +0200 Subject: [PATCH] Bugfix: convert array to matrix type for matrix multiply. --- opm/autodiff/AutoDiffHelpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }