diff --git a/opm/simulators/wells/WellInterface.hpp b/opm/simulators/wells/WellInterface.hpp index 890027c50..59142e5eb 100644 --- a/opm/simulators/wells/WellInterface.hpp +++ b/opm/simulators/wells/WellInterface.hpp @@ -98,12 +98,12 @@ namespace Opm static const int numEq = Indices::numEq; static const int numPhases = Indices::numPhases; - typedef double Scalar; + using Scalar = GetPropType; typedef Dune::FieldVector VectorBlockType; typedef Dune::FieldMatrix MatrixBlockType; typedef Dune::BlockVector BVector; - typedef DenseAd::Evaluation Eval; + typedef DenseAd::Evaluation Eval; static constexpr bool has_solvent = getPropValue(); static constexpr bool has_zFraction = getPropValue();