Commit 10f5798e authored by Matthieu Schaller's avatar Matthieu Schaller

Merge branch 'BH_no_grav_below_id' into 'master'

Allow black holes to be used when running with boundary particles and/or not receive gravity forces

See merge request !1123
parents c05aefab 6faeeabb
......@@ -575,7 +575,7 @@ void runner_do_end_grav_force(struct runner *r, struct cell *c, int timer) {
else if (gp->type == swift_type_stars)
id = e->s->sparts[-gp->id_or_neg_offset].id;
else if (gp->type == swift_type_black_hole)
error("Unexisting type");
id = e->s->bparts[-gp->id_or_neg_offset].id;
else
id = gp->id_or_neg_offset;
......
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