Commit 6faeeabb authored by fonotec's avatar fonotec

Allow black holes to not receive gravity forces if compiled with no gravity below ID N

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