mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
80238d9940
commit
e36ae88ab9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user