Fix corner case in neighbour definition.

This commit is contained in:
Bård Skaflestad
2012-01-13 13:36:36 +01:00
parent ed7b7e5dab
commit 96b9ab737e

View File

@@ -802,7 +802,7 @@ fill_cart_topology_2d(struct UnstructuredGrid *G, int nx, int ny)
*fcells++ = i+nx*j;
}
else if (j == ny) {
*fcells++ = i+nx*j;
*fcells++ = i+nx*(j-1);
*fcells++ = -1;
}
else {