mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-10-12 17:02:02 -05:00
Avoid negative indicies in minPvFillNtg_
This commit is contained in:
1 parent
64feefaf05
commit
a5858393c6
1 file changed
+4
@@ -429,6 +429,10 @@ private:
|
||||
|
||||
// use the original ntg values if the cell above has porv > minPVvalue.
|
||||
int cartesianCellIdxAbove = cartesianCellIdx - nxny;
|
||||
|
||||
if (cartesianCellIdxAbove < 0)
|
||||
continue;
|
||||
|
||||
if (porv[cartesianCellIdxAbove] > eclGrid.getMinpvValue() ){
|
||||
averageNtg[cartesianCellIdx] = ntg[cartesianCellIdx];
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user