diff --git a/src/const.h b/src/const.h index 4d510ceffad23dbf0a50d4a871af95b494e1fdd0..95039976ac8d5202385a4361c0f6fa87dcbbba2a 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 3cb9db598d5cce31e974c1ed772ed53e3e10483e..584cf20146418ecdba67f786a1bd1e7165e3caa0 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 7597a673dc2e6d7834239f3391a9b6285d72e391..dc602ea79282459f792183db879b07072c79a246 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;