+#define MOLDYN_LVSTAT_TOTAL_E 0x01
+#define MOLDYN_LVSTAT_TOTAL_M 0x02
+#define MOLDYN_LVSTAT_SAVE 0x04
+#define MOLDYN_LVSTAT_DUMP 0x08
+#define MOLDYN_LVSTAT_VISUAL 0x10
+#define MOLDYN_LVSTAT_INITIALIZED 0x80
+
int create_lattice(unsigned char type,int element,double mass,double lc,
int a,int b,int c,t_atom **atom);
int destroy_lattice(t_atom *atom);
int create_lattice(unsigned char type,int element,double mass,double lc,
int a,int b,int c,t_atom **atom);
int destroy_lattice(t_atom *atom);
-int thermal_init(t_atom *atom,t_random *random,int count,double t);
-int scale_velocity(t_atom *atom,int count,double t);
+int thermal_init(t_moldyn *moldyn,t_random *random,int count);
+int scale_velocity(t_moldyn *moldyn,int count);
double get_e_kin(t_atom *atom,int count);
double get_e_pot(t_moldyn *moldyn);
double get_total_energy(t_moldyn *moldyn);
double get_e_kin(t_atom *atom,int count);
double get_e_pot(t_moldyn *moldyn);
double get_total_energy(t_moldyn *moldyn);