diff --git a/opm/input/eclipse/Schedule/Schedule.hpp b/opm/input/eclipse/Schedule/Schedule.hpp index 3fc7e41ee..e3aca18ad 100644 --- a/opm/input/eclipse/Schedule/Schedule.hpp +++ b/opm/input/eclipse/Schedule/Schedule.hpp @@ -539,10 +539,7 @@ namespace Opm , grid(grid_) {} - void affected_well(const std::string& well_name) { - if (this->sim_update) - this->sim_update->affected_wells.insert(well_name); - } + void affected_well(const std::string& well_name); /// \brief Mark that the well occured in a WELSEGS keyword void welsegs_handled(const std::string& well_name) diff --git a/src/opm/input/eclipse/Schedule/Schedule.cpp b/src/opm/input/eclipse/Schedule/Schedule.cpp index 75a1e07d3..d49be7e3e 100644 --- a/src/opm/input/eclipse/Schedule/Schedule.cpp +++ b/src/opm/input/eclipse/Schedule/Schedule.cpp @@ -2273,4 +2273,10 @@ std::ostream& operator<<(std::ostream& os, const Schedule& sched) return os; } +void Schedule::HandlerContext::affected_well(const std::string& well_name) +{ + if (this->sim_update) + this->sim_update->affected_wells.insert(well_name); +} + }