mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-18 17:42:58 -06:00
Fixed indexing bug in findSideFaces().
This commit is contained in:
parent
8ac62545cf
commit
38aaa867bb
@ -210,7 +210,7 @@ namespace Opm
|
||||
|
||||
// Get all boundary faces with the correct tag and with
|
||||
// min/max i/j/k (depending on side).
|
||||
const int correct_ijk = (side % 2) ? grid.cartdims[side/2] : 0;
|
||||
const int correct_ijk = (side % 2) ? grid.cartdims[side/2] - 1 : 0;
|
||||
for (int c = 0; c < grid.number_of_cells; ++c) {
|
||||
int ijk[3] = { -1, -1, -1 };
|
||||
int gc = (grid.global_cell != 0) ? grid.global_cell[c] : c;
|
||||
|
Loading…
Reference in New Issue
Block a user