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:
Bård Skaflestad
2012-03-08 20:51:17 +01:00
parent ac18454902
commit 94317cc02f
+1 -1
View File
@@ -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;