From c2d1236cff342b0baf8aec6c02b245526f8eb622 Mon Sep 17 00:00:00 2001 From: Markus Blatt Date: Wed, 28 Jun 2023 15:33:54 +0200 Subject: [PATCH] Added warning about memory/performance for large number of equil regions. --- ebos/eclgenericthresholdpressure.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ebos/eclgenericthresholdpressure.cc b/ebos/eclgenericthresholdpressure.cc index 4cdeaad1a..72132037a 100644 --- a/ebos/eclgenericthresholdpressure.cc +++ b/ebos/eclgenericthresholdpressure.cc @@ -133,6 +133,14 @@ finishInit() maxRegions))); } + if (numEquilRegions_ > 2048) { + // warn about performance + OpmLog::warning(fmt::format("Number of equil regions is {}. This larger " + "than 2048. Note, that this might " + "might have a negative impact on performance " + "and memory consumption", numEquilRegions_)); + } + // internalize the data specified using the EQLNUM keyword const auto& fp = eclState_.fieldProps(); const auto& equilRegionData = fp.get_int("EQLNUM");