From ac91db281af465fd31d12c001c17b82c1254a5fe Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 16 Dec 2022 15:05:06 +0100 Subject: [PATCH] MultisegmentWell: make processFractions non-const this updates state --- opm/simulators/wells/MultisegmentWellEval.cpp | 2 +- opm/simulators/wells/MultisegmentWellEval.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/MultisegmentWellEval.cpp b/opm/simulators/wells/MultisegmentWellEval.cpp index 4e095e542..129b14ef1 100644 --- a/opm/simulators/wells/MultisegmentWellEval.cpp +++ b/opm/simulators/wells/MultisegmentWellEval.cpp @@ -188,7 +188,7 @@ getWellConvergence(const WellState& well_state, template void MultisegmentWellEval:: -processFractions(const int seg) const +processFractions(const int seg) { static constexpr int Water = BlackoilPhases::Aqua; static constexpr int Oil = BlackoilPhases::Liquid; diff --git a/opm/simulators/wells/MultisegmentWellEval.hpp b/opm/simulators/wells/MultisegmentWellEval.hpp index 5a12d8c93..0e9c41eb1 100644 --- a/opm/simulators/wells/MultisegmentWellEval.hpp +++ b/opm/simulators/wells/MultisegmentWellEval.hpp @@ -132,7 +132,7 @@ protected: const bool relax_tolerance) const; // handling the overshooting and undershooting of the fractions - void processFractions(const int seg) const; + void processFractions(const int seg); void updatePrimaryVariables(const WellState& well_state) const;