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