Schedule: move more code to compile unit

This commit is contained in:
Arne Morten Kvarving
2023-01-10 09:48:47 +01:00
parent 894872d86d
commit 90ff1c01b2
2 changed files with 7 additions and 4 deletions

View File

@@ -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)

View File

@@ -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);
}
}