Merge pull request #1037 from atgeirr/add-phasepresence-ops

Add operator== and operator!= to PhasePresence.
This commit is contained in:
Bård Skaflestad 2016-06-15 19:56:11 +02:00 committed by GitHub
commit e444a03f34

View File

@ -60,6 +60,9 @@ namespace Opm
void setFreeOil () { insert(BlackoilPhases::Liquid); }
void setFreeGas () { insert(BlackoilPhases::Vapour); }
bool operator==(const PhasePresence& other) const { return present_ == other.present_; }
bool operator!=(const PhasePresence& other) const { return !this->operator==(other); }
private:
unsigned char present_;