VtkEclTracerModule: some modernization

- typedef -> using
- use constexpr
This commit is contained in:
Arne Morten Kvarving 2022-08-10 12:35:57 +02:00
parent 8ce0f63ef6
commit c69ee0d321

View File

@ -70,7 +70,7 @@ namespace Opm {
template <class TypeTag>
class VtkEclTracerModule : public BaseOutputModule<TypeTag>
{
typedef BaseOutputModule<TypeTag> ParentType;
using ParentType = BaseOutputModule<TypeTag>;
using Simulator = GetPropType<TypeTag, Properties::Simulator>;
using Scalar = GetPropType<TypeTag, Properties::Scalar>;
@ -80,11 +80,11 @@ namespace Opm {
using GridView = GetPropType<TypeTag, Properties::GridView>;
using FluidSystem = GetPropType<TypeTag, Properties::FluidSystem>;
static const int vtkFormat = getPropValue<TypeTag, Properties::VtkOutputFormat>();
typedef ::Opm::VtkMultiWriter<GridView, vtkFormat> VtkMultiWriter;
static constexpr int vtkFormat = getPropValue<TypeTag, Properties::VtkOutputFormat>();
using VtkMultiWriter = ::Opm::VtkMultiWriter<GridView, vtkFormat>;
typedef typename ParentType::ScalarBuffer ScalarBuffer;
using ScalarBuffer = typename ParentType::ScalarBuffer;
public:
VtkEclTracerModule(const Simulator& simulator)