My Project
phaseUsageFromDeck.hpp
1 
2 /*
3  Copyright 2012 SINTEF ICT, Applied Mathematics.
4 
5  This file is part of the Open Porous Media project (OPM).
6 
7  OPM is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  OPM is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with OPM. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef OPM_PHASEUSAGEFROMDECK_HEADER_INCLUDED
22 #define OPM_PHASEUSAGEFROMDECK_HEADER_INCLUDED
23 
24 #include <opm/core/props/BlackoilPhases.hpp>
25 
26 namespace Opm
27 {
28  class Deck;
29  class EclipseState;
30  class Phases;
31 
33  PhaseUsage phaseUsage(const Phases& phases);
34 
37  PhaseUsage phaseUsageFromDeck(const EclipseState& eclipseState);
38 
41  PhaseUsage phaseUsageFromDeck(const Deck& deck);
42 }
43 
44 #endif // OPM_PHASEUSAGEFROMDECK_HEADER_INCLUDED
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: BlackoilPhases.hpp:27
PhaseUsage phaseUsage(const Phases &phases)
Determine the active phases.
Definition: phaseUsageFromDeck.cpp:33
PhaseUsage phaseUsageFromDeck(const EclipseState &eclipseState)
Looks at presence of WATER, OIL and GAS keywords in state object to determine active phases.
Definition: phaseUsageFromDeck.cpp:141