Skip to content
Snippets Groups Projects
Commit 4de38704 authored by Loic Hausammann's avatar Loic Hausammann
Browse files

Add active functions for stars

parent cdf172d0
No related branches found
No related tags found
1 merge request!581Star density
......@@ -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 ?
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment