From f011bb517ff43000e7fed979476468c15ee7e34f Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 5 Jul 2024 17:49:51 +0200 Subject: [PATCH] move VtkBlackoilMICPModule parameters to TypeTag-free parameter system --- opm/models/blackoil/blackoilmodel.hh | 5 +- opm/models/io/vtkblackoilmicpmodule.hh | 67 ++++++-------------------- 2 files changed, 17 insertions(+), 55 deletions(-) diff --git a/opm/models/blackoil/blackoilmodel.hh b/opm/models/blackoil/blackoilmodel.hh index 3de282ec1..36252fc57 100644 --- a/opm/models/blackoil/blackoilmodel.hh +++ b/opm/models/blackoil/blackoilmodel.hh @@ -74,9 +74,8 @@ namespace Opm::Properties { namespace TTag { //! The type tag for the black-oil problems -struct BlackOilModel { using InheritsFrom = std::tuple; }; +struct BlackOilModel +{ using InheritsFrom = std::tuple; }; } // namespace TTag //! Set the local residual function diff --git a/opm/models/io/vtkblackoilmicpmodule.hh b/opm/models/io/vtkblackoilmicpmodule.hh index 9c22e96e6..cf626b8ed 100644 --- a/opm/models/io/vtkblackoilmicpmodule.hh +++ b/opm/models/io/vtkblackoilmicpmodule.hh @@ -41,51 +41,14 @@ #include #include -namespace Opm::Properties::TTag { - -// create new type tag for the VTK multi-phase output -struct VtkBlackOilMICP {}; - -} // namespace Opm::Properties::TTag - namespace Opm::Parameters { -// create the property tags needed for the MICP output module -template -struct VtkWriteMicrobialConcentration { using type = Properties::UndefinedProperty; }; - -template -struct VtkWriteOxygenConcentration { using type = Properties::UndefinedProperty; }; - -template -struct VtkWriteUreaConcentration { using type = Properties::UndefinedProperty; }; - -template -struct VtkWriteBiofilmConcentration { using type = Properties::UndefinedProperty; }; - -template -struct VtkWriteCalciteConcentration { using type = Properties::UndefinedProperty; }; - // set default values for what quantities to output -template -struct VtkWriteMicrobialConcentration -{ static constexpr bool value = true; }; - -template -struct VtkWriteOxygenConcentration -{ static constexpr bool value = true; }; - -template -struct VtkWriteUreaConcentration -{ static constexpr bool value = true; }; - -template -struct VtkWriteBiofilmConcentration -{ static constexpr bool value = true; }; - -template -struct VtkWriteCalciteConcentration -{ static constexpr bool value = true; }; +struct VtkWriteMicrobialConcentration { static constexpr bool value = true; }; +struct VtkWriteOxygenConcentration { static constexpr bool value = true; }; +struct VtkWriteUreaConcentration { static constexpr bool value = true; }; +struct VtkWriteBiofilmConcentration { static constexpr bool value = true; }; +struct VtkWriteCalciteConcentration { static constexpr bool value = true; }; } // namespace Opm::Parameters @@ -127,18 +90,18 @@ public: if (!enableMICP) return; - Parameters::registerParam + Parameters::Register ("Include the concentration of the microbial component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::Register ("Include the concentration of the oxygen component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::Register ("Include the concentration of the urea component in the water phase " "in the VTK output files"); - Parameters::registerParam + Parameters::Register ("Include the biofilm volume fraction in the VTK output files"); - Parameters::registerParam + Parameters::Register ("Include the calcite volume fraction in the VTK output files"); } @@ -239,31 +202,31 @@ public: private: static bool microbialConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::Get(); return val; } static bool oxygenConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::Get(); return val; } static bool ureaConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::Get(); return val; } static bool biofilmConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::Get(); return val; } static bool calciteConcentrationOutput_() { - static bool val = Parameters::get(); + static bool val = Parameters::Get(); return val; }