Record General Event When Processing WELPI
This commit ensures that we record a general, Schedule-level WELL_PRODUCTIVITY_INDEX event in addition to the well-specific event already recorded when we encounter a WELPI keyword. We need this information in order to trigger a PI calculation across all MPI processes in opm-simulators.
This commit is contained in:
parent
54e2eb5597
commit
354351daee
@ -1133,6 +1133,8 @@ namespace {
|
||||
this->addWellGroupEvent(well_name, ScheduleEvents::WELL_PRODUCTIVITY_INDEX, handlerContext.currentStep);
|
||||
}
|
||||
}
|
||||
|
||||
this->m_events.addEvent(ScheduleEvents::WELL_PRODUCTIVITY_INDEX, handlerContext.currentStep);
|
||||
}
|
||||
|
||||
void Schedule::handleWELSEGS(const HandlerContext& handlerContext, const ParseContext&, ErrorGuard&) {
|
||||
|
@ -3931,9 +3931,15 @@ END
|
||||
BOOST_REQUIRE_EQUAL(sched.getTimeMap().last(), std::size_t{5});
|
||||
|
||||
BOOST_REQUIRE_MESSAGE(sched.hasWellGroupEvent("P", ScheduleEvents::Events::WELL_PRODUCTIVITY_INDEX, 1),
|
||||
"Schedule must have WELL_PRODUCTIVITY_INDEX Event at report step 1");
|
||||
R"(Schedule must have WELL_PRODUCTIVITY_INDEX Event for well "P" at report step 1)");
|
||||
|
||||
BOOST_REQUIRE_MESSAGE(sched.hasWellGroupEvent("P", ScheduleEvents::Events::WELL_PRODUCTIVITY_INDEX, 3),
|
||||
R"(Schedule must have WELL_PRODUCTIVITY_INDEX Event for well "P" at report step 3)");
|
||||
|
||||
BOOST_REQUIRE_MESSAGE(sched.getEvents().hasEvent(ScheduleEvents::Events::WELL_PRODUCTIVITY_INDEX, 1),
|
||||
"Schedule must have WELL_PRODUCTIVITY_INDEX Event at report step 1");
|
||||
|
||||
BOOST_REQUIRE_MESSAGE(sched.getEvents().hasEvent(ScheduleEvents::Events::WELL_PRODUCTIVITY_INDEX, 3),
|
||||
"Schedule must have WELL_PRODUCTIVITY_INDEX Event at report step 3");
|
||||
|
||||
auto getScalingFactor = [&sched](const std::size_t report_step, const double wellPI) -> double
|
||||
|
Loading…
Reference in New Issue
Block a user