diff --git a/src/cell.h b/src/cell.h index 9b234c722723b29787db011cc8574d232ee5fcd3..222c632202b8db61aecb8eba5d2462b0a4c98893 100644 --- a/src/cell.h +++ b/src/cell.h @@ -1065,7 +1065,8 @@ __attribute__((always_inline)) INLINE static int cell_can_split_pair_hydro_task( /* into account any part motion (i.e. dx_max == 0 here) */ return c->split && (space_stretch * kernel_gamma * c->hydro.h_max < 0.5f * c->dmin) && - (space_stretch * kernel_gamma * c->stars.h_max < 0.5f * c->dmin); + (space_stretch * kernel_gamma * c->stars.h_max < 0.5f * c->dmin) && + (space_stretch * kernel_gamma * c->black_holes.h_max < 0.5f * c->dmin); } /** @@ -1084,7 +1085,8 @@ __attribute__((always_inline)) INLINE static int cell_can_split_self_hydro_task( /* tasks will be created. So no need to check for h_max */ return c->split && (space_stretch * kernel_gamma * c->hydro.h_max < 0.5f * c->dmin) && - (space_stretch * kernel_gamma * c->stars.h_max < 0.5f * c->dmin); + (space_stretch * kernel_gamma * c->stars.h_max < 0.5f * c->dmin) && + (space_stretch * kernel_gamma * c->black_holes.h_max < 0.5f * c->dmin); } /** @@ -1134,6 +1136,7 @@ cell_need_rebuild_for_hydro_pair(const struct cell *ci, const struct cell *cj) { } return 0; } + /** * @brief Have star particles in a pair of cells moved too much and require a * rebuild?