diff --git a/opm/autodiff/StandardWellsDense.hpp b/opm/autodiff/StandardWellsDense.hpp index 6e118f9ef..89c53c3cd 100644 --- a/opm/autodiff/StandardWellsDense.hpp +++ b/opm/autodiff/StandardWellsDense.hpp @@ -191,6 +191,10 @@ enum WellVariablePositions { return report; } + if (param_.compute_well_potentials_) { + computeWellPotentials(ebosSimulator, well_state); + } + resetWellControlFromState(well_state); updateWellControls(well_state); // Set the primary variables for the wells @@ -207,10 +211,6 @@ enum WellVariablePositions { } assembleWellEq(ebosSimulator, dt, well_state, false); - // Not sure we should calculate it during solveWellEq - if (param_.compute_well_potentials_) { - computeWellPotentials(ebosSimulator, well_state); - } report.converged = true; return report; }