From df729bf4782af63f6032ca83207cb0325aba83e9 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Fri, 22 Jun 2018 15:50:11 +0100 Subject: [PATCH] Temporarily prevent the code from running with periodic BCs and self-gravity. --- examples/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/main.c b/examples/main.c index b2b6edc1f8..d4d3d41f0a 100644 --- a/examples/main.c +++ b/examples/main.c @@ -689,6 +689,11 @@ int main(int argc, char *argv[]) { fflush(stdout); } +#ifdef WITH_MPI + if(periodic && with_self_gravity) + error("Periodic self-gravity over MPI temporarily disabled."); +#endif + #ifdef SWIFT_DEBUG_CHECKS /* Check once and for all that we don't have unwanted links */ if (!with_stars && !dry_run) { @@ -724,6 +729,7 @@ int main(int argc, char *argv[]) { "ICs.", N_total[0], N_total[2], N_total[1]); + /* Verify that the fields to dump actually exist */ if (myrank == 0) io_check_output_fields(params, N_total); -- GitLab