adapt to API changes of opm-autodiff.

This commit is contained in:
Liu Ming 2014-11-14 13:16:22 +08:00
parent 58bdc701e3
commit 9a5c889656
2 changed files with 2 additions and 11 deletions

View File

@ -328,12 +328,7 @@ namespace Opm
props_.permeability()); props_.permeability());
const Wells* wells = wells_manager.c_wells(); const Wells* wells = wells_manager.c_wells();
WellStateFullyImplicitBlackoil well_state; WellStateFullyImplicitBlackoil well_state;
well_state.init(wells, state.blackoilState()); well_state.init(wells, state.blackoilState(), prev_well_state);
if (timer.currentStepNum() != 0) {
// Transfer previous well state to current.
well_state.partialCopy(prev_well_state, *wells, prev_well_state.numWells());
}
// compute polymer inflow // compute polymer inflow
std::unique_ptr<PolymerInflowInterface> polymer_inflow_ptr; std::unique_ptr<PolymerInflowInterface> polymer_inflow_ptr;
if (deck_->hasKeyword("WPOLYMER")) { if (deck_->hasKeyword("WPOLYMER")) {

View File

@ -278,11 +278,7 @@ namespace Opm
props_.permeability()); props_.permeability());
const Wells* wells = wells_manager.c_wells(); const Wells* wells = wells_manager.c_wells();
WellStateFullyImplicitBlackoil well_state; WellStateFullyImplicitBlackoil well_state;
well_state.init(wells, state.blackoilState()); well_state.init(wells, state.blackoilState(), prev_well_state);
if (timer.currentStepNum() != 0) {
// Transfer previous well state to current.
well_state.partialCopy(prev_well_state, *wells, prev_well_state.numWells());
}
//Compute polymer inflow. //Compute polymer inflow.
std::unique_ptr<PolymerInflowInterface> polymer_inflow_ptr; std::unique_ptr<PolymerInflowInterface> polymer_inflow_ptr;
if (deck_->hasKeyword("WPOLYMER")) { if (deck_->hasKeyword("WPOLYMER")) {