mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 10:40:21 -06:00
moving computeWellPotentials to be earlier in assemble()
in StandardWellsDense. solveWellEq then have access to the updated well potentials. does not change the result.
This commit is contained in:
parent
01322b740e
commit
65a3fff6f2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user