Commit 742815f2 authored by Yannick Bahé's avatar Yannick Bahé
Browse files

Fix bug in runner_ghost causing erroneous skipping of BH particles

parent 95f01b23
......@@ -809,7 +809,8 @@ void runner_do_black_holes_swallow_ghost(struct runner *r, struct cell *c,
TIMER_TIC;
/* Anything to do here? */
if (!cell_is_active_hydro(c, e)) return;
if (c->black_holes.count == 0) return;
if (!cell_is_active_black_holes(c, e)) return;
/* Recurse? */
if (c->split) {
......
Supports Markdown
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