mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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:
@@ -191,6 +191,10 @@ enum WellVariablePositions {
|
|||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (param_.compute_well_potentials_) {
|
||||||
|
computeWellPotentials(ebosSimulator, well_state);
|
||||||
|
}
|
||||||
|
|
||||||
resetWellControlFromState(well_state);
|
resetWellControlFromState(well_state);
|
||||||
updateWellControls(well_state);
|
updateWellControls(well_state);
|
||||||
// Set the primary variables for the wells
|
// Set the primary variables for the wells
|
||||||
@@ -207,10 +211,6 @@ enum WellVariablePositions {
|
|||||||
}
|
}
|
||||||
assembleWellEq(ebosSimulator, dt, well_state, false);
|
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;
|
report.converged = true;
|
||||||
return report;
|
return report;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user