Set initial 'facepos' member lest the contents be undefined.

Detected by: valgrind.
This commit is contained in:
Bård Skaflestad 2011-12-08 16:31:47 +01:00
parent 7fe3ac8e81
commit ad7c16cb61

View File

@ -223,6 +223,9 @@ cart_grid(int nx, int ny, int nz)
cfacepos = G->cell_facepos;
ccentroids = G->cell_centroids;
cvolumes = G->cell_volumes;
cfacepos[0] = 0;
for (k=0; k<nz; ++k) {
for (j=0; j<ny; ++j) {
for (i=0; i<nx; ++i) {