mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-11-03 20:56:43 -06:00
BlackOilMICPExtensiveQuantities: properly implement partial specialization
for disabling in micp-less runs
This commit is contained in:
1 parent
afa623a18e
commit
5dd30a32d2
2 files changed
+6
-3
No files matched your search
@@ -55,7 +55,7 @@ class BlackOilExtensiveQuantities
|
||||
, public BlackOilPolymerExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnablePolymer>()>
|
||||
, public BlackOilEnergyExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableEnergy>()>
|
||||
, public BlackOilDiffusionExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableDiffusion>()>
|
||||
, public BlackOilMICPExtensiveQuantities<TypeTag>
|
||||
, public BlackOilMICPExtensiveQuantities<TypeTag, getPropValue<TypeTag, Properties::EnableMICP>()>
|
||||
{
|
||||
using MultiPhaseParent = MultiPhaseBaseExtensiveQuantities<TypeTag>;
|
||||
|
||||
|
||||
@@ -518,6 +518,9 @@ public:
|
||||
{ throw std::logic_error("permFactor() called but MICP is disabled"); }
|
||||
};
|
||||
|
||||
template <class TypeTag, bool enableMICPV>
|
||||
class BlackOilMICPExtensiveQuantities;
|
||||
|
||||
/*!
|
||||
* \ingroup BlackOil
|
||||
* \class Opm::BlackOilMICPExtensiveQuantities
|
||||
@@ -525,8 +528,8 @@ public:
|
||||
* \brief Provides the MICP specific extensive quantities to the generic black-oil
|
||||
* module's extensive quantities.
|
||||
*/
|
||||
template <class TypeTag, bool enableMICPV = getPropValue<TypeTag, Properties::EnableMICP>()>
|
||||
class BlackOilMICPExtensiveQuantities
|
||||
template <class TypeTag>
|
||||
class BlackOilMICPExtensiveQuantities<TypeTag, /*enableMICPV=*/true>
|
||||
{
|
||||
using Implementation = GetPropType<TypeTag, Properties::ExtensiveQuantities>;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user