From 6d35c4e9fba4dc89e5708b88d29d11d82b8a4f48 Mon Sep 17 00:00:00 2001 From: "Peter W. Draper" <p.w.draper@durham.ac.uk> Date: Thu, 22 Dec 2016 13:12:50 +0000 Subject: [PATCH] Revert "Move unskip to after rebuild, probably needed this way after repartitioning" This reverts commit de558d53a2330ab63b48385358835b0e4962f6dd. The non-MPI SodShock test starting using 0 dt steps. --- src/engine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine.c b/src/engine.c index f437af5219..1ff7a7d46b 100644 --- a/src/engine.c +++ b/src/engine.c @@ -2261,7 +2261,10 @@ void engine_prepare(struct engine *e, int nodrift) { TIMER_TIC; - /* Check for rebuild */ + /* Unskip active tasks and check for rebuild */ + engine_unskip(e); + + /* Run through the tasks and mark as skip or not. */ int rebuild = e->forcerebuild; /* Collect the values of rebuild from all nodes. */ @@ -2287,9 +2290,6 @@ void engine_prepare(struct engine *e, int nodrift) { engine_rebuild(e); } - /* Run through the tasks and mark as skip or not (after rebuild). */ - engine_unskip(e); - /* Re-rank the tasks every now and then. */ if (e->tasks_age % engine_tasksreweight == 1) { scheduler_reweight(&e->sched, e->verbose); -- GitLab