Commit db551aca authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Added the missing new tasks in task_acts_on()

parent fefe8478
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
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