mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #883 from jokva/relax-opm-phase-enum-constexpr
Remove weak enum Opm::Phase; replace with constexpr
This commit is contained in:
commit
59b7d8c8fc
@ -133,9 +133,9 @@ namespace Opm {
|
|||||||
SimulatorData(int num_phases);
|
SimulatorData(int num_phases);
|
||||||
|
|
||||||
enum FipId {
|
enum FipId {
|
||||||
FIP_AQUA = Opm::Phases::Water,
|
FIP_AQUA = Opm::Water,
|
||||||
FIP_LIQUID = Opm::Phases::Oil,
|
FIP_LIQUID = Opm::Oil,
|
||||||
FIP_VAPOUR = Opm::Phases::Gas,
|
FIP_VAPOUR = Opm::Gas,
|
||||||
FIP_DISSOLVED_GAS = 3,
|
FIP_DISSOLVED_GAS = 3,
|
||||||
FIP_VAPORIZED_OIL = 4,
|
FIP_VAPORIZED_OIL = 4,
|
||||||
FIP_PV = 5, //< Pore volume
|
FIP_PV = 5, //< Pore volume
|
||||||
|
@ -26,12 +26,10 @@
|
|||||||
namespace Opm
|
namespace Opm
|
||||||
{
|
{
|
||||||
|
|
||||||
enum Phases {
|
constexpr const auto Water = BlackoilPropsAdInterface::Water;
|
||||||
Water = BlackoilPropsAdInterface::Water,
|
constexpr const auto Oil = BlackoilPropsAdInterface::Oil;
|
||||||
Oil = BlackoilPropsAdInterface::Oil ,
|
constexpr const auto Gas = BlackoilPropsAdInterface::Gas;
|
||||||
Gas = BlackoilPropsAdInterface::Gas ,
|
constexpr const auto MaxNumPhases = BlackoilPropsAdInterface::MaxNumPhases;
|
||||||
MaxNumPhases = BlackoilPropsAdInterface::MaxNumPhases
|
|
||||||
};
|
|
||||||
|
|
||||||
enum PrimalVariables {
|
enum PrimalVariables {
|
||||||
Sg = 0,
|
Sg = 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user