diff --git a/opm/core/props/BlackoilPhases.hpp b/opm/core/props/BlackoilPhases.hpp index ebfd1f72..679fd95d 100644 --- a/opm/core/props/BlackoilPhases.hpp +++ b/opm/core/props/BlackoilPhases.hpp @@ -60,6 +60,9 @@ namespace Opm void setFreeOil () { insert(BlackoilPhases::Liquid); } void setFreeGas () { insert(BlackoilPhases::Vapour); } + bool operator==(const PhasePresence& other) { return present_ == other.present_; } + bool operator!=(const PhasePresence& other) { return !this->operator==(other); } + private: unsigned char present_;