mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-22 23:43:28 -06:00
Merge pull request #5827 from atgeirr/silence-capture-warning
Remove unneded capture of 'this'.
This commit is contained in:
commit
dba531e5fd
@ -358,12 +358,11 @@ public:
|
|||||||
wmatcher,
|
wmatcher,
|
||||||
this->wellModel_().wellOpenTimes(),
|
this->wellModel_().wellOpenTimes(),
|
||||||
this->wellModel_().wellCloseTimes(),
|
this->wellModel_().wellCloseTimes(),
|
||||||
[this, reportStep, schedule, timeStep](const std::string& name)
|
[timeStep, &wg_events = schedule[reportStep].wellgroup_events()](const std::string& name)
|
||||||
{
|
{
|
||||||
if (timeStep != 0) {
|
if (timeStep != 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const auto& wg_events = schedule[reportStep].wellgroup_events();
|
|
||||||
return wg_events.hasEvent(name, ScheduleEvents::REQUEST_OPEN_WELL);
|
return wg_events.hasEvent(name, ScheduleEvents::REQUEST_OPEN_WELL);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user