From ac84f6444c5728e07d3bccec3e15a58267badc43 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 27 Mar 2018 21:31:18 +0200
Subject: [PATCH] Restore the ability to perform a dry-run to check that all
 the parameters are read in correctly.

---
 examples/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/main.c b/examples/main.c
index 2f4a023225..0053c7b063 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -671,11 +671,11 @@ int main(int argc, char *argv[]) {
 
 #ifdef SWIFT_DEBUG_CHECKS
     /* Check once and for all that we don't have unwanted links */
-    if (!with_stars) {
+    if (!with_stars && !dry_run) {
       for (size_t k = 0; k < Ngpart; ++k)
         if (gparts[k].type == swift_type_star) error("Linking problem");
     }
-    if (!with_hydro) {
+    if (!with_hydro && !dry_run) {
       for (size_t k = 0; k < Ngpart; ++k)
         if (gparts[k].type == swift_type_gas) error("Linking problem");
     }
-- 
GitLab