From e9b19d667cb9eea1e4d91a38bf83b03a3273f3f9 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Thu, 13 Oct 2016 15:55:37 +0100 Subject: [PATCH] Don't unskip the sort tasks when the main task is skipped --- src/engine.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/engine.c b/src/engine.c index 32004a3cbb..768dff70f2 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2034,9 +2034,11 @@ void engine_marktasks_mapper(void *map_data, int num_elements, cj->dx_max > space_maxreldx * cj->h_max)) *rebuild_space = 1; - /* Set this task's skip. */ + /* Set this task's skip, otherwise nothing to do. */ if (ci->ti_end_min <= ti_end || cj->ti_end_min <= ti_end) scheduler_activate(s, t); + else + continue; /* If this is not a density task, we don't have to do any of the below. */ if (t->subtype != task_subtype_density) continue; -- GitLab