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:
Kai Bao 2017-01-12 16:54:26 +01:00
parent 01322b740e
commit 65a3fff6f2

View File

@ -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;
}