performing prepareTimeStep in assemble for StandardWellsDense

instead of model->preppareStep()

to avoid segmenttation error from eclSimulator and also not intervening
with NonlinearSolver
This commit is contained in:
Kai Bao
2017-03-24 15:11:49 +01:00
parent 4a6dbbe0a7
commit e39ffefb2e
3 changed files with 6 additions and 5 deletions

View File

@@ -130,6 +130,10 @@ namespace Opm {
WellState& well_state)
{
if (iterationIdx == 0) {
prepareTimeStep(ebosSimulator, well_state);
}
// after restarting, the well_controls can be modified while
// the well_state still uses the old control index
// we need to synchronize these two.