]> hackdaworld.org Git - physik/posic.git/commitdiff
fixed compiler warnings
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Thu, 30 Apr 2009 08:14:29 +0000 (10:14 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Thu, 30 Apr 2009 08:14:29 +0000 (10:14 +0200)
mdrun.c
pair_correlation_calc.c
potentials/albe.h

diff --git a/mdrun.c b/mdrun.c
index 1bf983d883a924a958131570fec2e7da13d76a9c..f402e40e1566eb198166aaa12effc443a9370310 100644 (file)
--- a/mdrun.c
+++ b/mdrun.c
 #include "potentials/tersoff.h"
 #endif
 
-/* pse */
-#define PSE_MASS
-#include "pse.h"
-#undef PSE_MASS
-
 #define ME     "[mdrun]"
 
 /*
index cfe14e27a456f0e1b4ba653596c02a1d974b71cc..26db76b4cc8cd389485a056f9339c48be075420c 100644 (file)
@@ -43,6 +43,8 @@ int main(int argc,char **argv) {
        dr=atof(argv[1]);
 
        first=1;
+       stat=NULL;
+       total=NULL;
 
        for(j=2;j<argc;j++) {
 
@@ -55,8 +57,10 @@ int main(int argc,char **argv) {
                        return ret;
                }
 
-               moldyn.cutoff*=2;
-               moldyn.cutoff_square*=4;
+               //moldyn.cutoff*=2;
+               //moldyn.cutoff_square*=4;
+               moldyn.cutoff=6.0;
+               moldyn.cutoff_square=36.0;
 
                slots=moldyn.cutoff/dr;
                printf("[pair corr calc]\n");
index 14d7af6f7c2428f1f0e0e63955554ac249c40362..89cdae28dfd0acc4ad2d27d3b158582f8b86bfca 100644 (file)
@@ -89,6 +89,8 @@ int albe_mult_3bp_j2(t_moldyn *moldyn,t_atom *ai,t_atom *aj,u8 bc);
 int albe_mult_3bp_k2(t_moldyn *moldyn,
                      t_atom *ai,t_atom *aj,t_atom *ak,u8 bc);
 int albe_mult_check_2b_bond(t_moldyn *moldyn,t_atom *itom,t_atom *jtom,u8 bc);
+/* fast */
+int albe_potential_force_calc(t_moldyn *moldyn);
 
 /* albe potential parameter defines */