mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 17:26:27 -06:00
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:
commit
2cc22f99cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user