Merge pull request #1868 from andlaus/sparse_matrix_adapter_from_linear_solver

set the SparseMatrixAdapter property in the linear solver type tag
This commit is contained in:
Atgeirr Flø Rasmussen 2019-05-31 20:40:10 +02:00 committed by GitHub
commit 2cc22f99cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<Scalar, numEq, numEq> Block;
public:
typedef typename Ewoms::Linear::IstlSparseMatrixAdapter<Block> type;
};
END_PROPERTIES
namespace Opm