mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-03 21:16:54 -06:00
Don't use uninitialised variables.
This commit is contained in:
parent
afdb88678f
commit
d1026c82d5
@ -369,6 +369,8 @@ count_internal_conn(grid_t *G, int c)
|
||||
{
|
||||
int c1, c2, f, i, nconn;
|
||||
|
||||
nconn = 0;
|
||||
|
||||
for (i = G->cell_facepos[c]; i < G->cell_facepos[c + 1]; i++) {
|
||||
f = G->cell_faces[i];
|
||||
c1 = G->face_cells[2*f + 0];
|
||||
|
Loading…
Reference in New Issue
Block a user