mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclNewtonMethod: some modernization
- typedef -> using - use constexpr
This commit is contained in:
parent
beaf8c20f4
commit
c626dc7488
@ -65,7 +65,7 @@ namespace Opm {
|
|||||||
template <class TypeTag>
|
template <class TypeTag>
|
||||||
class EclNewtonMethod : public BlackOilNewtonMethod<TypeTag>
|
class EclNewtonMethod : public BlackOilNewtonMethod<TypeTag>
|
||||||
{
|
{
|
||||||
typedef BlackOilNewtonMethod<TypeTag> ParentType;
|
using ParentType = BlackOilNewtonMethod<TypeTag>;
|
||||||
using DiscNewtonMethod = GetPropType<TypeTag, Properties::DiscNewtonMethod>;
|
using DiscNewtonMethod = GetPropType<TypeTag, Properties::DiscNewtonMethod>;
|
||||||
|
|
||||||
using Simulator = GetPropType<TypeTag, Properties::Simulator>;
|
using Simulator = GetPropType<TypeTag, Properties::Simulator>;
|
||||||
@ -79,7 +79,7 @@ class EclNewtonMethod : public BlackOilNewtonMethod<TypeTag>
|
|||||||
using Linearizer = GetPropType<TypeTag, Properties::Linearizer>;
|
using Linearizer = GetPropType<TypeTag, Properties::Linearizer>;
|
||||||
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
|
using ElementContext = GetPropType<TypeTag, Properties::ElementContext>;
|
||||||
|
|
||||||
static const unsigned numEq = getPropValue<TypeTag, Properties::NumEq>();
|
static constexpr unsigned numEq = getPropValue<TypeTag, Properties::NumEq>();
|
||||||
|
|
||||||
static constexpr int contiSolventEqIdx = Indices::contiSolventEqIdx;
|
static constexpr int contiSolventEqIdx = Indices::contiSolventEqIdx;
|
||||||
static constexpr int contiPolymerEqIdx = Indices::contiPolymerEqIdx;
|
static constexpr int contiPolymerEqIdx = Indices::contiPolymerEqIdx;
|
||||||
|
Loading…
Reference in New Issue
Block a user