diff --git a/flow/flow_ebos_oilwater.cpp b/flow/flow_ebos_oilwater.cpp index 431f793ae..f0d0f802e 100644 --- a/flow/flow_ebos_oilwater.cpp +++ b/flow/flow_ebos_oilwater.cpp @@ -31,26 +31,24 @@ namespace Opm { namespace Properties { namespace TTag { -struct EclFlowOilWaterProblem { +struct FlowOilWaterProblem { using InheritsFrom = std::tuple; }; } - +template +struct Linearizer { using type = TpfaLinearizer; }; template -struct Linearizer { using type = TpfaLinearizer; }; +struct LocalResidual { using type = BlackOilLocalResidualTPFA; }; template -struct LocalResidual { using type = BlackOilLocalResidualTPFA; }; - -template -struct EnableDiffusion { static constexpr bool value = false; }; +struct EnableDiffusion { static constexpr bool value = false; }; //! The indices required by the model template -struct Indices +struct Indices { private: // it is unfortunately not possible to simply use 'TypeTag' here because this leads @@ -60,15 +58,15 @@ private: using FluidSystem = GetPropType; public: - typedef BlackOilTwoPhaseIndices(), - getPropValue(), - getPropValue(), - getPropValue(), - getPropValue(), - getPropValue(), - /*PVOffset=*/0, - /*disabledCompIdx=*/FluidSystem::gasCompIdx, - getPropValue()> type; + using type = BlackOilTwoPhaseIndices(), + getPropValue(), + getPropValue(), + getPropValue(), + getPropValue(), + getPropValue(), + /*PVOffset=*/0, + /*disabledCompIdx=*/FluidSystem::gasCompIdx, + getPropValue()>; }; }} @@ -81,14 +79,14 @@ int flowEbosOilWaterMain(int argc, char** argv, bool outputCout, bool outputFile // with incorrect locale settings. resetLocale(); - FlowMain + FlowMain mainfunc {argc, argv, outputCout, outputFiles}; return mainfunc.execute(); } int flowEbosOilWaterMainStandalone(int argc, char** argv) { - using TypeTag = Properties::TTag::EclFlowOilWaterProblem; + using TypeTag = Properties::TTag::FlowOilWaterProblem; auto mainObject = std::make_unique(argc, argv); auto ret = mainObject->runStatic(); // Destruct mainObject as the destructor calls MPI_Finalize!