From 1b073185a10f704a4a38b94e0a7948c0ef2b29f6 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Fri, 12 May 2023 15:11:53 +0200 Subject: [PATCH] fixed: copy the mobility values into the temporary Eval vector --- opm/simulators/wells/StandardWell_impl.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index 8edf58124..a16e07a31 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -955,6 +955,8 @@ namespace Opm // as a result, the polymer and water share the same viscosity if constexpr (!Base::has_polymermw) { std::vector mob_eval(this->num_components_, {this->primary_variables_.numWellEq() + Indices::numEq, 0.}); + for (size_t i = 0; i < mob.size(); ++i) + mob_eval[i].setValue(mob[i]); updateWaterMobilityWithPolymer(ebosSimulator, perf, mob_eval, deferred_logger); for (size_t i = 0; i < mob.size(); ++i) { mob[i] = getValue(mob_eval[i]);