Skip to content
Snippets Groups Projects
Commit 303590a8 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

check if cell is drifted before init.

parent 49782a29
No related branches found
No related tags found
1 merge request!327Rebuild criteria
...@@ -539,6 +539,11 @@ void runner_do_init(struct runner *r, struct cell *c, int timer) { ...@@ -539,6 +539,11 @@ void runner_do_init(struct runner *r, struct cell *c, int timer) {
for (int k = 0; k < 8; k++) for (int k = 0; k < 8; k++)
if (c->progeny[k] != NULL) runner_do_init(r, c->progeny[k], 0); if (c->progeny[k] != NULL) runner_do_init(r, c->progeny[k], 0);
} else { } else {
#ifdef SWIFT_DEBUG_CHECKS
if (!cell_is_drifted(c, e))
error("Trying to init undrifted cell.");
#endif
/* Loop over the parts in this cell. */ /* Loop over the parts in this cell. */
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment