Added warning about memory/performance for large number of equil regions.

This commit is contained in:
Markus Blatt 2023-06-28 15:33:54 +02:00
parent a6809c84f3
commit c2d1236cff

View File

@ -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");