From 6e0b370e7356c8350f1409e2886bced0136af494 Mon Sep 17 00:00:00 2001 From: hackbard Date: Thu, 12 Jul 2007 16:07:01 +0000 Subject: [PATCH] runtime schedule adding => hooks must be executed even without following schedule --- moldyn.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/moldyn.c b/moldyn.c index 2fdf4c2..433be68 100644 --- a/moldyn.c +++ b/moldyn.c @@ -1490,13 +1490,11 @@ return 0; } /* check for hooks */ - if(sched->count+1total_sched) { - if(sched->hook) { - printf("\n ## schedule hook %d/%d start ##\n", - sched->count+1,sched->total_sched-1); - sched->hook(moldyn,sched->hook_params); - printf(" ## schedule hook end ##\n"); - } + if(sched->hook) { + printf("\n ## schedule hook %d/%d start ##\n", + sched->count+1,sched->total_sched-1); + sched->hook(moldyn,sched->hook_params); + printf(" ## schedule hook end ##\n"); } /* increase the schedule counter */ -- 2.20.1