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
......@@ -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 ?
*
......
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