Skip to content
Snippets Groups Projects
Commit 5be506a6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only test links when debugging

parent 9d290b1b
Branches
Tags
1 merge request!118One major change to replace all gpart id/parts with the new id_or_neg_offset.
......@@ -2453,6 +2453,7 @@ void engine_split(struct engine *e, struct partition *initial_partition) {
/* Re-link the parts. */
part_relink_parts(s->gparts, s->nr_gparts, s->parts);
#ifdef SWIFT_DEBUG_CHECKS
/* Verify that the links are correct */
for (size_t k = 0; k < s->nr_gparts; ++k) {
......@@ -2472,6 +2473,7 @@ void engine_split(struct engine *e, struct partition *initial_partition) {
if (s->parts[k].gpart != NULL && s->parts[k].gpart->id_or_neg_offset != -k)
error("Linking problem !");
}
#endif
#else
error("SWIFT was not compiled with MPI support.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment