Commit f33c3d60 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Merge branch 'yb-bhfix' into 'master'

Fix erroneous skipping of BH particles

See merge request !1016
parents 728c65e8 742815f2
......@@ -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