mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 05:30:40 -06:00
Add operator== and operator!= to PhasePresence.
This makes it simpler to write code debugging or inspecting changed phase configurations.
This commit is contained in:
parent
ec3d7e7702
commit
b0c6e43cf8
@ -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_;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user