From ab4772aba8c5f62810a7da060520e75e73dedf1b Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 12 May 2021 09:02:29 +0200 Subject: [PATCH] fixed: use Scalar type from TypeTag --- opm/simulators/wells/WellInterface.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();