mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-16 20:24:48 -06:00
EclCpGridVanguard: some modernization
- typedef -> using - use constexpr
This commit is contained in:
parent
c2de02a04d
commit
07283aa780
@ -79,7 +79,7 @@ class EclCpGridVanguard : public EclBaseVanguard<TypeTag>
|
||||
GetPropType<TypeTag, Properties::Scalar>>
|
||||
{
|
||||
friend class EclBaseVanguard<TypeTag>;
|
||||
typedef EclBaseVanguard<TypeTag> ParentType;
|
||||
using ParentType = EclBaseVanguard<TypeTag>;
|
||||
|
||||
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
|
||||
using Simulator = GetPropType<TypeTag, Properties::Simulator>;
|
||||
@ -91,7 +91,7 @@ public:
|
||||
using EquilGrid = GetPropType<TypeTag, Properties::EquilGrid>;
|
||||
using GridView = GetPropType<TypeTag, Properties::GridView>;
|
||||
using TransmissibilityType = EclTransmissibility<Grid, GridView, ElementMapper, CartesianIndexMapper, Scalar>;
|
||||
static const int dimensionworld = Grid::dimensionworld;
|
||||
static constexpr int dimensionworld = Grid::dimensionworld;
|
||||
|
||||
private:
|
||||
using Element = typename GridView::template Codim<0>::Entity;
|
||||
|
Loading…
Reference in New Issue
Block a user