X-Git-Url: https://www.hackdaworld.org/gitweb/?a=blobdiff_plain;f=mdrun.c;h=58999011b8a6acf9ac77b08988e47d47e84d203f;hb=3de2d654be3a4c430261798edbe7c17201e4f366;hp=b5abe87ed61b6a8a8e782e07f565e1c20e735a05;hpb=55cd4d049604f2cf1d0fff095e6bcd13ec25780f;p=physik%2Fposic.git diff --git a/mdrun.c b/mdrun.c index b5abe87..5899901 100644 --- a/mdrun.c +++ b/mdrun.c @@ -517,6 +517,7 @@ int mdrun_parse_config(t_mdrun *mdrun) { ap.count=0; ap.runs=atoi(word[2]); ap.dt=atof(word[3]); + ap.interval=atoi(word[4]); add_stage(mdrun,STAGE_ANNEAL,&ap); } else if(!strncmp(word[1],"set_temp",8)) { @@ -1006,6 +1007,7 @@ int mdrun_hook(void *ptr1,void *ptr2) { set_temperature(moldyn, moldyn->t_ref+ap->dt); ap->count+=1; + steps=ap->interval; break; case STAGE_CHAATTR: stage_print(" -> change atom attributes\n\n");