From cc4c5c1fbd40a036ff69ccf7bdb69a5a1dfb1b51 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 10 Dec 2019 14:05:01 +0100 Subject: [PATCH] add equality operator to WellGuideRate --- opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp b/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp index e267dbf1b..21e341985 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp +++ b/opm/parser/eclipse/EclipseState/Schedule/Well/Well.hpp @@ -156,6 +156,13 @@ public: double guide_rate; GuideRateTarget guide_phase; double scale_factor; + + bool operator==(const WellGuideRate& data) const { + return available == data.available && + guide_rate == data.guide_rate && + guide_phase == data.guide_phase && + scale_factor == data.scale_factor; + } };