make PolymerState return numPhases.

This commit is contained in:
Liu Ming 2013-12-09 20:34:23 +08:00
parent e226b5d95e
commit fb12565ddf

View File

@ -50,6 +50,10 @@ namespace Opm
state2p_.setFirstSat(cells, props, static_cast<TwophaseState::ExtremalSat>(es));
}
inline int numPhases() const
{
return state2p_.numPhases();
}
std::vector<double>& pressure () { return state2p_.pressure(); }
std::vector<double>& facepressure() { return state2p_.facepressure(); }
std::vector<double>& faceflux () { return state2p_.faceflux(); }
@ -66,7 +70,7 @@ namespace Opm
TwophaseState& twophaseState() { return state2p_; }
const TwophaseState& twophaseState() const { return state2p_; }
private:
TwophaseState state2p_;
std::vector<double> concentration_;