From e36ae88ab98f0c9ca5e971f68620f277ca73f6f7 Mon Sep 17 00:00:00 2001 From: Andreas Lauser Date: Fri, 31 May 2019 10:55:13 +0200 Subject: [PATCH] set the SparseMatrixAdapter property in the linear solver type tag this is necessary because after OPM/ewoms#513, the `SparseMatrixAdapter` property will be "owned" by the linear solver and because ISTLSolverEbos does not build on top of `Ewoms::ParallelBaseBackend`. --- opm/simulators/linalg/ISTLSolverEbos.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/opm/simulators/linalg/ISTLSolverEbos.hpp b/opm/simulators/linalg/ISTLSolverEbos.hpp index 7a5ae5159..62a23a708 100644 --- a/opm/simulators/linalg/ISTLSolverEbos.hpp +++ b/opm/simulators/linalg/ISTLSolverEbos.hpp @@ -57,6 +57,19 @@ NEW_PROP_TAG(Indices); NEW_PROP_TAG(Simulator); NEW_PROP_TAG(EclWellModel); +//! Set the type of a global jacobian matrix for linear solvers that are based on +//! dune-istl. +SET_PROP(FlowIstlSolver, SparseMatrixAdapter) +{ +private: + typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar; + enum { numEq = GET_PROP_VALUE(TypeTag, NumEq) }; + typedef Ewoms::MatrixBlock Block; + +public: + typedef typename Ewoms::Linear::IstlSparseMatrixAdapter type; +}; + END_PROPERTIES namespace Opm