mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge branch 'master' into frankenstein
* master: Update to shared_ptr-less parser interface.
This commit is contained in:
@@ -1269,7 +1269,7 @@ namespace Opm {
|
||||
/// upate the dynamic lists related to economic limits
|
||||
template<class WellState>
|
||||
void
|
||||
updateListEconLimited(ScheduleConstPtr schedule,
|
||||
updateListEconLimited(const Schedule& schedule,
|
||||
const int current_step,
|
||||
const Wells* wells_struct,
|
||||
const WellState& well_state,
|
||||
@@ -1281,7 +1281,7 @@ namespace Opm {
|
||||
// flag to check if the mim oil/gas rate limit is violated
|
||||
bool rate_limit_violated = false;
|
||||
const std::string& well_name = wells_struct->name[w];
|
||||
const Well* well_ecl = schedule->getWell(well_name);
|
||||
const Well* well_ecl = schedule.getWell(well_name);
|
||||
const WellEconProductionLimits& econ_production_limits = well_ecl->getEconProductionLimits(current_step);
|
||||
|
||||
// economic limits only apply for production wells.
|
||||
|
||||
Reference in New Issue
Block a user