diff --git a/src/active.h b/src/active.h index 949babf1b1f8d27c89d0a5d9c3a93f1825512fd3..d73e7b9ef400174ba27a53c1ffb6579e7630dd16 100644 --- a/src/active.h +++ b/src/active.h @@ -73,6 +73,20 @@ __attribute__((always_inline)) INLINE static int cell_are_gpart_drifted( return (c->ti_old_gpart == e->ti_current); } +/** + * @brief Check that the #spart in a #cell have been drifted to the current + * time. + * + * @param c The #cell. + * @param e The #engine containing information about the current time. + * @return 1 if the #cell has been drifted to the current time, 0 otherwise. + */ +__attribute__((always_inline)) INLINE static int cell_are_spart_drifted( + const struct cell *c, const struct engine *e) { + + return 1; +} + /* Are cells / particles active for regular tasks ? */ /** @@ -174,6 +188,19 @@ __attribute__((always_inline)) INLINE static int cell_is_all_active_gravity( return (c->ti_gravity_end_max == e->ti_current); } +/** + * @brief Does a cell contain any s-particle finishing their time-step now ? + * + * @param c The #cell. + * @param e The #engine containing information about the current time. + * @return 1 if the #cell contains at least an active particle, 0 otherwise. + */ +__attribute__((always_inline)) INLINE static int cell_is_active_star( + const struct cell *c, const struct engine *e) { + + return 1; +} + /** * @brief Is this particle finishing its time-step now ? *