Properly initialise the cell_facepos.

This commit is contained in:
Bård Skaflestad
2011-10-24 10:01:13 +02:00
parent 6442d3fda2
commit 420b14af05

View File

@@ -100,6 +100,7 @@ create_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) {