fixed: broken range check

This commit is contained in:
Arne Morten Kvarving 2025-01-23 10:42:08 +01:00
parent 2760d2b09e
commit 98497c52e9

View File

@ -1098,7 +1098,7 @@ localIdxToGlobalIdx(unsigned localIdx) const
throw std::logic_error("index map is not created on this rank");
}
if (localIdx > this->localIdxToGlobalIdx_.size()) {
if (localIdx >= this->localIdxToGlobalIdx_.size()) {
throw std::logic_error("local index is outside map range");
}