Merge pull request #5250 from bska/region-level-udq

Prepare for Including Region Level Quantities in Field Level UDQs
This commit is contained in:
Bård Skaflestad 2024-04-08 13:58:00 +02:00 committed by GitHub
commit ee5ee7826f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,6 +29,7 @@
#include <opm/grid/utility/cartesianToCompressed.hpp>
#include <opm/input/eclipse/EclipseState/EclipseState.hpp>
#include <opm/input/eclipse/EclipseState/Grid/RegionSetMatcher.hpp>
#include <opm/input/eclipse/EclipseState/SummaryConfig/SummaryConfig.hpp>
#include <opm/input/eclipse/Schedule/Action/State.hpp>
@ -654,8 +655,11 @@ evalSummary(const int reportStepNum,
this->schedule_,
this->schedule_.wellMatcher(udq_step),
this->schedule_.segmentMatcherFactory(udq_step),
summaryState,
udqState);
[es = std::cref(this->eclState_)]() {
return std::make_unique<RegionSetMatcher>
(es.get().fipRegionStatistics());
},
summaryState, udqState);
}
#if HAVE_MPI