projects
/
physik
/
posic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
998262a
)
's/for/while/' <- runtime schedule adding possible now
author
hackbard
<hackbard>
Thu, 12 Jul 2007 15:56:26 +0000
(15:56 +0000)
committer
hackbard
<hackbard>
Thu, 12 Jul 2007 15:56:26 +0000
(15:56 +0000)
moldyn.c
patch
|
blob
|
history
diff --git
a/moldyn.c
b/moldyn.c
index
992d112
..
2fdf4c2
100644
(file)
--- a/
moldyn.c
+++ b/
moldyn.c
@@
-1391,7
+1391,8
@@
return 0;
printf("[moldyn] integration start, go get a coffee ...\n");
/* executing the schedule */
printf("[moldyn] integration start, go get a coffee ...\n");
/* executing the schedule */
- for(sched->count=0;sched->count<sched->total_sched;sched->count++) {
+ sched->count=0;
+ while(sched->count<sched->total_sched) {
/* setting amount of runs and finite time step size */
moldyn->tau=sched->tau[sched->count];
/* setting amount of runs and finite time step size */
moldyn->tau=sched->tau[sched->count];
@@
-1489,13
+1490,17
@@
return 0;
}
/* check for hooks */
}
/* check for hooks */
- if(sched->count+1<sched->total_sched)
+ if(sched->count+1<sched->total_sched)
{
if(sched->hook) {
printf("\n ## schedule hook %d/%d start ##\n",
if(sched->hook) {
printf("\n ## schedule hook %d/%d start ##\n",
- sched->count+1,sched->total_sched);
+ sched->count+1,sched->total_sched
-1
);
sched->hook(moldyn,sched->hook_params);
printf(" ## schedule hook end ##\n");
}
sched->hook(moldyn,sched->hook_params);
printf(" ## schedule hook end ##\n");
}
+ }
+
+ /* increase the schedule counter */
+ sched->count+=1;
}
}