From: hackbard Date: Thu, 12 Jul 2007 16:07:01 +0000 (+0000) Subject: runtime schedule adding => hooks must be executed even without following X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e0b370e7356c8350f1409e2886bced0136af494;p=physik%2Fposic.git runtime schedule adding => hooks must be executed even without following schedule --- 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 */