Improved messages about equilibration regions.

This commit is contained in:
Markus Blatt 2023-06-29 09:08:18 +02:00
parent c2d1236cff
commit 6496e871ed

View File

@ -129,16 +129,17 @@ finishInit()
// in the vector // in the vector
OPM_THROW(std::invalid_argument, OPM_THROW(std::invalid_argument,
(fmt::format("The maximum number of supported " (fmt::format("The maximum number of supported "
"equilibration regions by OPM flow is {}!", "equilibration regions by OPM flow is {}, but "
maxRegions))); "{} are used!",
maxRegions, numEquilRegions_)));
} }
if (numEquilRegions_ > 2048) { if (numEquilRegions_ > 2048) {
// warn about performance // warn about performance
OpmLog::warning(fmt::format("Number of equil regions is {}. This larger " OpmLog::warning(fmt::format("Number of equilibration regions is {}, which is "
"than 2048. Note, that this might " "rather large. Note, that this might "
"might have a negative impact on performance " "have a negative impact on performance "
"and memory consumption", numEquilRegions_)); "and memory consumption.", numEquilRegions_));
} }
// internalize the data specified using the EQLNUM keyword // internalize the data specified using the EQLNUM keyword