Commit 5be506a6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Only test links when debugging

parent 9d290b1b
......@@ -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.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment