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`.
This commit is contained in:
Andreas Lauser 2019-05-31 10:55:13 +02:00
parent 80238d9940
commit e36ae88ab9

View File

@ -57,6 +57,19 @@ NEW_PROP_TAG(Indices);
NEW_PROP_TAG(Simulator); NEW_PROP_TAG(Simulator);
NEW_PROP_TAG(EclWellModel); 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<Scalar, numEq, numEq> Block;
public:
typedef typename Ewoms::Linear::IstlSparseMatrixAdapter<Block> type;
};
END_PROPERTIES END_PROPERTIES
namespace Opm namespace Opm