From 908b2d1aa638ad7e9e07298df609aa74705616e3 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 22 Jan 2020 11:24:26 +0100 Subject: [PATCH] add equality operator to EclEpsScalingPointsInfo --- .../EclEpsScalingPoints.hpp | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp b/opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp index 1b68420d7..daa30dc1c 100644 --- a/opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp +++ b/opm/material/fluidmatrixinteractions/EclEpsScalingPoints.hpp @@ -100,6 +100,31 @@ struct EclEpsScalingPointsInfo Scalar maxKrog; // maximum relative permability of oil in the gas-oil system Scalar maxKrg; // maximum relative permability of gas + bool operator==(const EclEpsScalingPointsInfo& data) const + { + return Swl == data.Swl && + Sgl == data.Sgl && + Sowl == data.Sowl && + Sogl == data.Sogl && + krCriticalEps == data.krCriticalEps && + Swcr == data.Swcr && + Sgcr == data.Sgcr && + Sowcr == data.Sowcr && + Sogcr == data.Sogcr && + Swu == data.Swu && + Sgu == data.Sgu && + Sowu == data.Sowu && + Sogu == data.Sogu && + maxPcow == data.maxPcow && + maxPcgo == data.maxPcgo && + pcowLeverettFactor == data.pcowLeverettFactor && + pcgoLeverettFactor == data.pcgoLeverettFactor && + maxKrw == data.maxKrw && + maxKrow == data.maxKrow && + maxKrog == data.maxKrog && + maxKrg == data.maxKrg; + } + void print() const { std::cout << " Swl: " << Swl << "\n"