mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fixed: broken range check
This commit is contained in:
parent
2760d2b09e
commit
98497c52e9
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user