Skip to content
Snippets Groups Projects
Commit 3552bb4a authored by James Willis's avatar James Willis
Browse files

Created a new function to check that a particle is active, without passing in...

Created a new function to check that a particle is active, without passing in a pointer to the engine.
parent 8193736e
Branches
Tags
1 merge request!406Doself2 vectorisation
......@@ -144,6 +144,14 @@ __attribute__((always_inline)) INLINE static int part_is_active(
return (part_bin <= max_active_bin);
}
__attribute__((always_inline)) INLINE static int part_is_active_no_debug(
const struct part *p, const timebin_t max_active_bin) {
const timebin_t part_bin = p->time_bin;
return (part_bin <= max_active_bin);
}
/**
* @brief Is this g-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