mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
adapt to API changes of opm-autodiff.
This commit is contained in:
parent
58bdc701e3
commit
9a5c889656
@ -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")) {
|
||||||
|
@ -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")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user