Skip to content
Snippets Groups Projects
Commit 6faeeabb authored by fonotec's avatar fonotec
Browse files

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

parent c05aefab
No related branches found
No related tags found
1 merge request!1123Allow black holes to be used when running with boundary particles and/or not receive gravity forces
...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment