Commit 4f946aa2 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

In part_verify_links() complain if a DM particle has an ID or neg. offset of 0.

parent bdc54ed6
......@@ -119,7 +119,7 @@ void part_verify_links(struct part *parts, struct gpart *gparts,
if (gparts[k].type == swift_type_dark_matter) {
/* Check that it's not linked */
if (gparts[k].id_or_neg_offset < 0)
if (gparts[k].id_or_neg_offset <= 0)
error("DM gpart particle linked to something !");
}
......
Markdown is supported
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