Array Dimension Checker: Correct Groupsize Criterion

It is perfectly fine to have groups whose size (number of children)
is equal to the declared maximum (Item 4 of WELLDIMS).  It is only
questionable to have groups whose active size exceeds that of the
declared maximum.

Pointy Hat: @bska
This commit is contained in:
Bård Skaflestad
2019-06-18 15:31:06 +02:00
parent d2f692ebae
commit 52881467d6

View File

@@ -114,7 +114,7 @@ namespace {
size = std::max(size, static_cast<std::size_t>(nwgmax));
}
if (size >= static_cast<decltype(size)>(wdims.maxWellsPerGroup()))
if (size > static_cast<decltype(size)>(wdims.maxWellsPerGroup()))
{
std::ostringstream os;
os << "Run uses maximum group size of " << size << ", but "