return 0;
}
+int moldyn_add_schedule(t_moldyn *moldyn,) {
+
+
+ return 0;
+}
+
+int moldyn_set_schedule_hook(t_moldyn *moldyn,void *hook,void *hook_params) {
+
+
+ return 0;
+}
+
/*
*
* 'integration of newtons equation' - algorithms
moldyn->potential_force_function(moldyn);
for(sched=0;sched<moldyn->schedule.content_count;sched++) {
- moldyn->tau=;
- moldyn->tau_square=;
- // hier weiter ...
+ /* setting amont of runs and finite time step size */
+ moldyn->tau=schedule->tau[sched];
+ moldyn->tau_square=moldyn->tau*moldyn->tau;
+ moldyn->timesteps=schedule->runs[sched];
+
+ /* integration according to schedule */
for(i=0;i<moldyn->time_steps;i++) {
}
}
+ /* check for hooks */
+ if(schedule->hook)
+ schedule->hook(moldyn,schedule->hook_params);
+
return 0;
}
#define MOLDYN_POTENTIAL_TM 0x02
#define MOLDYN_SET_POTENTIAL 0x00
-#define MOLDYN_SET_
+#define MOLDYN_SET_TEMPERATURE 0x01
#define MOLDYN_SET_
#define MOLDYN_SET_