replace typedefs with using statements

This commit is contained in:
Arne Morten Kvarving
2021-05-12 09:06:37 +02:00
parent ab4772aba8
commit 9758cd4f92

View File

@@ -76,7 +76,7 @@ namespace Opm
using WellState = WellStateFullyImplicitBlackoil; using WellState = WellStateFullyImplicitBlackoil;
typedef BlackoilModelParametersEbos<TypeTag> ModelParameters; using ModelParameters = BlackoilModelParametersEbos<TypeTag>;
static const int Water = BlackoilPhases::Aqua; static const int Water = BlackoilPhases::Aqua;
static const int Oil = BlackoilPhases::Liquid; static const int Oil = BlackoilPhases::Liquid;
@@ -100,10 +100,10 @@ namespace Opm
static const int numPhases = Indices::numPhases; static const int numPhases = Indices::numPhases;
using Scalar = GetPropType<TypeTag, Properties::Scalar>; using Scalar = GetPropType<TypeTag, Properties::Scalar>;
typedef Dune::FieldVector<Scalar, numEq > VectorBlockType; using VectorBlockType = Dune::FieldVector<Scalar, numEq>;
typedef Dune::FieldMatrix<Scalar, numEq, numEq > MatrixBlockType; using MatrixBlockType = Dune::FieldMatrix<Scalar, numEq, numEq>;
typedef Dune::BlockVector<VectorBlockType> BVector; using BVector = Dune::BlockVector<VectorBlockType>;
typedef DenseAd::Evaluation<Scalar, /*size=*/numEq> Eval; using Eval = DenseAd::Evaluation<Scalar, /*size=*/numEq>;
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>();