20 #ifndef OPM_PHASEUSAGEFROMDECK_HEADER_INCLUDED
21 #define OPM_PHASEUSAGEFROMDECK_HEADER_INCLUDED
24 #include <opm/common/ErrorMacros.hpp>
26 #include <opm/parser/eclipse/Deck/Deck.hpp>
27 #include <opm/parser/eclipse/EclipseState/EclipseState.hpp>
58 OPM_THROW(std::runtime_error,
"Cannot handle cases with " << pu.
num_phases <<
" phases.");
64 OPM_THROW(std::runtime_error,
"Cannot handle cases with no OIL, i.e. water-gas systems.");
78 if (deck->hasKeyword(
"WATER")) {
81 if (deck->hasKeyword(
"OIL")) {
84 if (deck->hasKeyword(
"GAS")) {
95 OPM_THROW(std::runtime_error,
"Cannot handle cases with " << pu.
num_phases <<
" phases.");
101 OPM_THROW(std::runtime_error,
"Cannot handle cases with no OIL, i.e. water-gas systems.");
109 #endif // OPM_PHASEUSAGEFROMDECK_HEADER_INCLUDED
Definition: AnisotropicEikonal.hpp:43
Definition: BlackoilPhases.hpp:32
Definition: legacy_well.h:47
Definition: legacy_well.h:47
int phase_used[MaxNumPhases]
Definition: BlackoilPhases.hpp:39
int phase_pos[MaxNumPhases]
Definition: BlackoilPhases.hpp:40
int num_phases
Definition: BlackoilPhases.hpp:38
Definition: legacy_well.h:47
Definition: BlackoilPhases.hpp:32
static const int MaxNumPhases
Definition: BlackoilPhases.hpp:30
PhaseUsage phaseUsageFromDeck(Opm::EclipseStateConstPtr eclipseState)
Definition: phaseUsageFromDeck.hpp:35
Definition: BlackoilPhases.hpp:32
Definition: BlackoilPhases.hpp:36