Chase API Change for UDQ Evaluation

In particular, pass a "segment matcher factory" into every function
that forms UDQ context objects.
This commit is contained in:
Bård Skaflestad
2023-01-16 15:08:14 +01:00
parent 8b8164308a
commit 0c7b0f5fcb
2 changed files with 8 additions and 2 deletions

View File

@@ -652,6 +652,7 @@ evalSummary(const int reportStepNum,
.eval(udq_step,
this->schedule_,
this->schedule_.wellMatcher(udq_step),
this->schedule_.segmentMatcherFactory(udq_step),
summaryState,
udqState);
}

View File

@@ -254,8 +254,13 @@ void EclActionHandler::evalUDQAssignments(const unsigned episodeIdx,
UDQState& udq_state)
{
const auto& udq = schedule_[episodeIdx].udq();
const auto& well_matcher = schedule_.wellMatcher(episodeIdx);
udq.eval_assign(episodeIdx, schedule_, well_matcher, summaryState_, udq_state);
udq.eval_assign(episodeIdx,
this->schedule_,
this->schedule_.wellMatcher(episodeIdx),
this->schedule_.segmentMatcherFactory(episodeIdx),
this->summaryState_,
udq_state);
}
} // namespace Opm