add equality operator to WellBrineProperties

This commit is contained in:
Arne Morten Kvarving 2020-01-08 13:26:49 +01:00 committed by Tor Harald Sandve
parent eb6159fceb
commit 763c931726
2 changed files with 6 additions and 0 deletions

View File

@ -30,6 +30,7 @@ struct WellBrineProperties
double m_saltConcentration = 0.0;
void handleWSALT(const DeckRecord& rec);
bool operator!=(const WellBrineProperties& other) const;
bool operator==(const WellBrineProperties& other) const;
};
} // namespace Opm

View File

@ -31,3 +31,8 @@ bool Opm::WellBrineProperties::operator!=(const WellBrineProperties& other) cons
{
return this->m_saltConcentration != other.m_saltConcentration;
}
bool Opm::WellBrineProperties::operator==(const WellBrineProperties& other) const
{
return this->m_saltConcentration == other.m_saltConcentration;
}