From 0363fd480141fa0ad616b5d38eb79e310ef3b8f3 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Tue, 24 Jun 2025 11:52:24 +0200 Subject: [PATCH] remove returns after throw --- opm/simulators/flow/FlowBaseVanguard.hpp | 4 +--- opm/simulators/wells/BlackoilWellModelGeneric.hpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/opm/simulators/flow/FlowBaseVanguard.hpp b/opm/simulators/flow/FlowBaseVanguard.hpp index 0483192b58..97fab135cd 100644 --- a/opm/simulators/flow/FlowBaseVanguard.hpp +++ b/opm/simulators/flow/FlowBaseVanguard.hpp @@ -206,13 +206,11 @@ public: } } - virtual int compressedIndexForInteriorLGR([[maybe_unused]] const std::string& lgr_tag, [[maybe_unused]] const Connection& conn) const { throw std::runtime_error("compressedIndexForInteriorLGR not implemented"); - return -1; - }; + } /*! * \brief Extract Cartesian index triplet (i,j,k) of an active cell. diff --git a/opm/simulators/wells/BlackoilWellModelGeneric.hpp b/opm/simulators/wells/BlackoilWellModelGeneric.hpp index 6796105877..57978f33ec 100644 --- a/opm/simulators/wells/BlackoilWellModelGeneric.hpp +++ b/opm/simulators/wells/BlackoilWellModelGeneric.hpp @@ -105,9 +105,7 @@ public: [[maybe_unused]] const Connection& conn) const { throw std::runtime_error("compressedIndexForInteriorLGR not implemented"); - return -1; - }; - + } int numLocalWells() const; int numLocalWellsEnd() const;