mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
Merge pull request #1037 from atgeirr/add-phasepresence-ops
Add operator== and operator!= to PhasePresence.
This commit is contained in:
commit
e444a03f34
@ -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_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user