From db551acae3583b9da0fb8e4dcfd93086c6b5574f Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Fri, 12 Aug 2016 12:45:12 +0100 Subject: [PATCH] Added the missing new tasks in task_acts_on() --- src/const.h | 4 ++-- src/engine.c | 5 ++--- src/task.c | 2 ++ 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/const.h b/src/const.h index 4d510ceffa..95039976ac 100644 --- a/src/const.h +++ b/src/const.h @@ -37,9 +37,9 @@ #define const_max_u_change 0.1f /* Dimensionality of the problem */ -#define HYDRO_DIMENSION_3D +//#define HYDRO_DIMENSION_3D //#define HYDRO_DIMENSION_2D -//#define HYDRO_DIMENSION_1D +#define HYDRO_DIMENSION_1D /* Hydrodynamical adiabatic index. */ #define HYDRO_GAMMA_5_3 diff --git a/src/engine.c b/src/engine.c index 3cb9db598d..584cf20146 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2715,9 +2715,8 @@ void engine_step(struct engine *e) { mask |= 1 << task_type_sub_self; mask |= 1 << task_type_sub_pair; mask |= 1 << task_type_ghost; - mask |= - 1 << task_type_extra_ghost; /* Adding unnecessary things to the mask - does not harm */ + mask |= 1 << task_type_extra_ghost; /* Adding unnecessary things to the mask + does not harm */ submask |= 1 << task_subtype_density; submask |= 1 << task_subtype_gradient; diff --git a/src/task.c b/src/task.c index 7597a673dc..dc602ea792 100644 --- a/src/task.c +++ b/src/task.c @@ -111,6 +111,7 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on( case task_type_sort: case task_type_ghost: + case task_type_extra_ghost: return task_action_part; break; @@ -121,6 +122,7 @@ __attribute__((always_inline)) INLINE static enum task_actions task_acts_on( switch (t->subtype) { case task_subtype_density: + case task_subtype_gradient: case task_subtype_force: return task_action_part; break; -- GitLab