mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 18:50:19 -06:00
move FlashTwoPhaseMethod to TypeTag-free parameter system
This commit is contained in:
parent
65db009152
commit
d2096030e5
@ -112,7 +112,7 @@ public:
|
||||
|
||||
const Scalar flashTolerance = Parameters::Get<Parameters::FlashTolerance<Scalar>>();
|
||||
const int flashVerbosity = Parameters::get<TypeTag, Parameters::FlashVerbosity>();
|
||||
const std::string flashTwoPhaseMethod = Parameters::get<TypeTag, Parameters::FlashTwoPhaseMethod>();
|
||||
const std::string flashTwoPhaseMethod = Parameters::Get<Parameters::FlashTwoPhaseMethod>();
|
||||
|
||||
// extract the total molar densities of the components
|
||||
ComponentVector z(0.);
|
||||
|
@ -156,11 +156,6 @@ template<class TypeTag>
|
||||
struct EnableThermodynamicHints<TypeTag, Properties::TTag::FlashModel>
|
||||
{ static constexpr bool value = true; };
|
||||
|
||||
// Flash two-phase method
|
||||
template<class TypeTag>
|
||||
struct FlashTwoPhaseMethod<TypeTag, Properties::TTag::FlashModel>
|
||||
{ static constexpr auto value = "ssi"; };
|
||||
|
||||
// Flash solver verbosity
|
||||
template<class TypeTag>
|
||||
struct FlashVerbosity<TypeTag, Properties::TTag::FlashModel>
|
||||
@ -258,7 +253,7 @@ public:
|
||||
"consider the solution converged");
|
||||
Parameters::registerParam<TypeTag, Parameters::FlashVerbosity>
|
||||
("Flash solver verbosity level");
|
||||
Parameters::registerParam<TypeTag, Parameters::FlashTwoPhaseMethod>
|
||||
Parameters::Register<Parameters::FlashTwoPhaseMethod>
|
||||
("Method for solving vapor-liquid composition. Available options include: "
|
||||
"ssi, newton, ssi+newton");
|
||||
|
||||
|
@ -37,8 +37,7 @@
|
||||
namespace Opm::Parameters {
|
||||
|
||||
//! Two-phase flash method
|
||||
template<class TypeTag, class MyTypeTag>
|
||||
struct FlashTwoPhaseMethod { using type = Properties::UndefinedProperty; };
|
||||
struct FlashTwoPhaseMethod { static constexpr auto value = "ssi"; };
|
||||
|
||||
//! The verbosity level of the flash solver
|
||||
template<class TypeTag, class MyTypeTag>
|
||||
|
@ -100,8 +100,7 @@ struct ParamInfo
|
||||
return other.paramName == paramName
|
||||
&& other.paramTypeName == paramTypeName
|
||||
&& other.typeTagName == typeTagName
|
||||
&& other.usageString == usageString
|
||||
&& other.compileTimeValue == compileTimeValue;
|
||||
&& other.usageString == usageString;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user