Skip to content
Snippets Groups Projects
Commit 05c71340 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Better naming convention for the function deciding whether a task can be split in the hydro case.

parent 1eed6369
No related branches found
No related tags found
1 merge request!576Gravity splittask (non-MPI)
......@@ -568,7 +568,7 @@ __attribute__((always_inline)) INLINE static int cell_can_recurse_in_self_task(
*
* @param c The #cell.
*/
__attribute__((always_inline)) INLINE static int cell_can_split_pair_task(
__attribute__((always_inline)) INLINE static int cell_can_split_pair_hydro_task(
const struct cell *c) {
/* Is the cell split ? */
......@@ -585,7 +585,7 @@ __attribute__((always_inline)) INLINE static int cell_can_split_pair_task(
*
* @param c The #cell.
*/
__attribute__((always_inline)) INLINE static int cell_can_split_self_task(
__attribute__((always_inline)) INLINE static int cell_can_split_self_hydro_task(
const struct cell *c) {
/* Is the cell split ? */
......
......@@ -360,7 +360,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
}
/* Is this cell even split and the task does not violate h ? */
if (cell_can_split_self_task(ci)) {
if (cell_can_split_self_hydro_task(ci)) {
/* Make a sub? */
if (scheduler_dosub && ci->count < space_subsize_self_hydro) {
......@@ -419,7 +419,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
const int sid = space_getsid(s->space, &ci, &cj, shift);
/* Should this task be split-up? */
if (cell_can_split_pair_task(ci) && cell_can_split_pair_task(cj)) {
if (cell_can_split_pair_hydro_task(ci) && cell_can_split_pair_hydro_task(cj)) {
/* Replace by a single sub-task? */
if (scheduler_dosub && /* Use division to avoid integer overflow. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment