mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-18 13:32:58 -06:00
findSideFaces(): Generate initial 'ijk' that was (probably) intended.
The trick of eliding explicit initialisers can only be use to zero an array (or structure), not to copy an arbitrary initialiser to all elements of the array.
This commit is contained in:
parent
9263fa1f08
commit
52cda7cbb9
@ -197,7 +197,7 @@ namespace Opm
|
||||
// min/max i/j/k (depending on side).
|
||||
const int correct_ijk = (side % 2) ? grid.cartdims[side/2] : 0;
|
||||
for (int c = 0; c < grid.number_of_cells; ++c) {
|
||||
int ijk[3] = { -1 };
|
||||
int ijk[3] = { -1, -1, -1 };
|
||||
cartCoord(grid.global_cell[c], grid.cartdims, ijk);
|
||||
if (ijk[side/2] != correct_ijk) {
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user