mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: use Scalar type from TypeTag
This commit is contained in:
parent
d5cdbf38d6
commit
ab4772aba8
@ -98,12 +98,12 @@ namespace Opm
|
|||||||
|
|
||||||
static const int numEq = Indices::numEq;
|
static const int numEq = Indices::numEq;
|
||||||
static const int numPhases = Indices::numPhases;
|
static const int numPhases = Indices::numPhases;
|
||||||
typedef double Scalar;
|
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
|
||||||
|
|
||||||
typedef Dune::FieldVector<Scalar, numEq > VectorBlockType;
|
typedef Dune::FieldVector<Scalar, numEq > VectorBlockType;
|
||||||
typedef Dune::FieldMatrix<Scalar, numEq, numEq > MatrixBlockType;
|
typedef Dune::FieldMatrix<Scalar, numEq, numEq > MatrixBlockType;
|
||||||
typedef Dune::BlockVector<VectorBlockType> BVector;
|
typedef Dune::BlockVector<VectorBlockType> BVector;
|
||||||
typedef DenseAd::Evaluation<double, /*size=*/numEq> Eval;
|
typedef DenseAd::Evaluation<Scalar, /*size=*/numEq> Eval;
|
||||||
|
|
||||||
static constexpr bool has_solvent = getPropValue<TypeTag, Properties::EnableSolvent>();
|
static constexpr bool has_solvent = getPropValue<TypeTag, Properties::EnableSolvent>();
|
||||||
static constexpr bool has_zFraction = getPropValue<TypeTag, Properties::EnableExtbo>();
|
static constexpr bool has_zFraction = getPropValue<TypeTag, Properties::EnableExtbo>();
|
||||||
|
Loading…
Reference in New Issue
Block a user