From 6277d12d168c5b59c5e7ae626eaddfd1766c199f Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Thu, 25 Nov 2021 14:56:27 +0000 Subject: [PATCH] fix return type for phaseIdx and compIdx --- opm/simulators/aquifers/AquiferInterface.hpp | 4 ++-- opm/simulators/aquifers/AquiferNumerical.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/opm/simulators/aquifers/AquiferInterface.hpp b/opm/simulators/aquifers/AquiferInterface.hpp index 48f7d232f..e8b86c457 100644 --- a/opm/simulators/aquifers/AquiferInterface.hpp +++ b/opm/simulators/aquifers/AquiferInterface.hpp @@ -174,7 +174,7 @@ protected: return ebos_simulator_.vanguard().eclState().runspec().co2Storage(); } - inline bool phaseIdx_() const + inline int phaseIdx_() const { if(co2store_()) return FluidSystem::oilPhaseIdx; @@ -182,7 +182,7 @@ protected: return FluidSystem::waterPhaseIdx; } - inline bool compIdx_() const + inline int compIdx_() const { if(co2store_()) return FluidSystem::oilCompIdx; diff --git a/opm/simulators/aquifers/AquiferNumerical.hpp b/opm/simulators/aquifers/AquiferNumerical.hpp index 47ff6b0a9..3524eddaf 100644 --- a/opm/simulators/aquifers/AquiferNumerical.hpp +++ b/opm/simulators/aquifers/AquiferNumerical.hpp @@ -161,7 +161,7 @@ private: return ebos_simulator_.vanguard().eclState().runspec().co2Storage(); } - inline bool phaseIdx_() const + inline int phaseIdx_() const { if(co2store_()) return FluidSystem::oilPhaseIdx;