diff --git a/src/engine.c b/src/engine.c index 1ebc83972e747cefdbdd84cf2a23b3effbd53985..997f41e9f1d5ce67a926e1168727b332efffc734 100644 --- a/src/engine.c +++ b/src/engine.c @@ -121,7 +121,6 @@ void engine_addlink(struct engine *e, struct link **l, struct task *t) { * * @param e The #engine. * @param c The #cell. - * @param super The super #cell. */ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c) { @@ -129,9 +128,7 @@ void engine_make_hierarchical_tasks(struct engine *e, struct cell *c) { const int is_fixdt = (e->policy & engine_policy_fixdt); const int is_hydro = (e->policy & engine_policy_hydro); const int is_with_cooling = (e->policy & engine_policy_cooling); - const int is_with_sourceterms = - (e->policy & engine_policy_sourceterms) == engine_policy_sourceterms; - + const int is_with_sourceterms = (e->policy & engine_policy_sourceterms); /* Are we in a super-cell ? */ if (c->super == c) { diff --git a/src/task.c b/src/task.c index 473df4aecb13823f4d49a0d2c7d64c528ab1c3c1..54b9363b7ac3d5c372b591c00b0b03cc274f66b5 100644 --- a/src/task.c +++ b/src/task.c @@ -48,10 +48,10 @@ /* Task type names. */ const char *taskID_names[task_type_count] = { - "none", "sort", "self", "pair", "sub_self", "sub_pair", - "init", "ghost", "extra_ghost", "kick", "kick_fixdt", "send", - "recv", "grav_gather_m", "grav_fft", "grav_mm", "grav_up", "cooling", - "sourceterms"}; + "none", "sort", "self", "pair", "sub_self", + "sub_pair", "init", "ghost", "extra_ghost", "kick", + "kick_fixdt", "send", "recv", "grav_gather_m", "grav_fft", + "grav_mm", "grav_up", "cooling", "sourceterms"}; const char *subtaskID_names[task_subtype_count] = { "none", "density", "gradient", "force", "grav", "external_grav", "tend"};