From 0131d5ecb023efbf4bf99467b97e26765a763f2c Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Wed, 26 Sep 2018 17:33:32 +0100 Subject: [PATCH] Also use the new name of the stars type enum in the gravity checks routine. --- src/gravity.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gravity.c b/src/gravity.c index 1f88490b57..53ab6b816f 100644 --- a/src/gravity.c +++ b/src/gravity.c @@ -487,7 +487,7 @@ void gravity_exact_force_compute_mapper(void *map_data, int nr_gparts, long long id = 0; if (gpi->type == swift_type_gas) id = parts[-gpi->id_or_neg_offset].id; - else if (gpi->type == swift_type_star) + else if (gpi->type == swift_type_stars) id = sparts[-gpi->id_or_neg_offset].id; else if (gpi->type == swift_type_black_hole) error("Unexisting type"); @@ -676,7 +676,7 @@ void gravity_exact_force_check(struct space *s, const struct engine *e, long long id = 0; if (gpi->type == swift_type_gas) id = parts[-gpi->id_or_neg_offset].id; - else if (gpi->type == swift_type_star) + else if (gpi->type == swift_type_stars) id = sparts[-gpi->id_or_neg_offset].id; else if (gpi->type == swift_type_black_hole) error("Unexisting type"); @@ -730,7 +730,7 @@ void gravity_exact_force_check(struct space *s, const struct engine *e, long long id = 0; if (gpi->type == swift_type_gas) id = parts[-gpi->id_or_neg_offset].id; - else if (gpi->type == swift_type_star) + else if (gpi->type == swift_type_stars) id = sparts[-gpi->id_or_neg_offset].id; else if (gpi->type == swift_type_black_hole) error("Unexisting type"); -- GitLab