From fb5f2eb9d07be25a02d922406eb5804e10984f8c Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Thu, 19 Nov 2020 19:50:01 +0100 Subject: [PATCH] StandardWell only assing primary_variables_[WQTotal] once. There seems to be no need to assign the same value consecutively as often as there are phases. --- opm/simulators/wells/StandardWell_impl.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/opm/simulators/wells/StandardWell_impl.hpp b/opm/simulators/wells/StandardWell_impl.hpp index 7a63dc823..a8d991ee3 100644 --- a/opm/simulators/wells/StandardWell_impl.hpp +++ b/opm/simulators/wells/StandardWell_impl.hpp @@ -2843,9 +2843,7 @@ namespace Opm break; } } else { - for (int p = 0; p < np; ++p) { primary_variables_[WQTotal] = total_well_rate; - } } if (std::abs(total_well_rate) > 0.) {