mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Make new ops const.
This commit is contained in:
parent
b0c6e43cf8
commit
d065a2c095
@ -60,8 +60,8 @@ 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); }
|
||||
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