From dfdbd30526dcd03ed72aaef852956d85d9ada454 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Thu, 10 Mar 2016 16:45:46 +0000
Subject: [PATCH] Make sure no 0 or negative ID is read in for DM particles

---
 src/common_io.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common_io.c b/src/common_io.c
index 5f345b2ac5..efeed75f01 100644
--- a/src/common_io.c
+++ b/src/common_io.c
@@ -489,7 +489,7 @@ void prepare_dm_gparts(struct gpart* gparts, int Ndm) {
   for (int i = 0; i < Ndm; ++i) {
 
     /* 0 ir negative ids are not allowed */
-    if(gparts[i].id <= 0) error("0 or negative if for DM particle");
+    if(gparts[i].id <= 0) error("0 or negative ID for DM particle");
     
     gparts[i].id = -gparts[i].id;
   }
-- 
GitLab