Allocate_cart_grid_3d(): Check allocation status of ->node_coordinates.
This was missing even in early implementations.
This commit is contained in:
parent
881d4e1225
commit
11a439da60
@ -207,7 +207,8 @@ allocate_cart_grid_3d(int nx, int ny, int nz)
|
||||
G->global_cell = NULL;
|
||||
G->cell_facetag = NULL;
|
||||
|
||||
if ((G->face_nodes == NULL ) ||
|
||||
if ((G->node_coordinates == NULL ) ||
|
||||
(G->face_nodes == NULL ) ||
|
||||
(G->face_nodepos == NULL ) ||
|
||||
(G->face_cells == NULL ) ||
|
||||
(G->face_centroids == NULL ) ||
|
||||
|
Loading…
Reference in New Issue
Block a user