Set initial 'facepos' member lest the contents be undefined.
Detected by: valgrind.
This commit is contained in:
parent
7fe3ac8e81
commit
ad7c16cb61
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user