adding prepareTimeStep() to the StandardWellsDense

to handle the well potential related calculation
This commit is contained in:
Kai Bao
2017-03-16 16:39:05 +01:00
parent 57f7650228
commit 819aa90d84
4 changed files with 52 additions and 4 deletions

View File

@@ -127,7 +127,11 @@ namespace Opm
failureReport_ = SimulatorReport();
// Do model-specific once-per-step calculations.
model_->prepareStep(timer, initial_reservoir_state, initial_well_state);
// TODO: this is not the correct fix, possibly breaking the sequential solver
// TODO: the only reason to do this is that the wellPotentials() is part of the well_state, which will be modified
// during the well_potential calculation
model_->prepareStep(timer, initial_reservoir_state, well_state);
// model_->prepareStep(timer, initial_reservoir_state, initial_reservoir_state);
int iteration = 0;