vel scaling issues, tersoff still segfaulting!
[physik/posic.git] / sic.c
diff --git a/sic.c b/sic.c
index 2cd32eb..fa1cb66 100644 (file)
--- a/sic.c
+++ b/sic.c
@@ -15,7 +15,6 @@
 #include "posic.h"
 
 int main(int argc,char **argv) {
-printf("%d\n",sizeof(t_atom));
        /* main moldyn structure */
        t_moldyn md;
 
@@ -98,7 +97,8 @@ printf("%d\n",sizeof(t_atom));
        /* create the lattice / place atoms */
        printf("[sic] creating atoms\n");
        create_lattice(&md,DIAMOND,LC_SI,SI,M_SI,
-                      ATOM_ATTR_1BP|ATOM_ATTR_2BP|ATOM_ATTR_3BP,
+                      ATOM_ATTR_1BP|ATOM_ATTR_2BP|ATOM_ATTR_3BP|ATOM_ATTR_HB,
+                      //ATOM_ATTR_2BP|ATOM_ATTR_HB,
                       0,4,4,4);
 
        /* setting a nearest neighbour distance for the moldyn checks */
@@ -106,7 +106,7 @@ printf("%d\n",sizeof(t_atom));
 
        /* set temperature */
        printf("[sic] setting temperature\n");
-       set_temperature(&md,273.0+450.0);
+       set_temperature(&md,273.0);
        
        /* initial thermal fluctuations of particles */
        printf("[sic] thermal init\n");
@@ -114,12 +114,12 @@ printf("%d\n",sizeof(t_atom));
 
        /* create the simulation schedule */
        printf("[sic] adding schedule\n");
-       moldyn_add_schedule(&md,10000,1.0e-15);
+       moldyn_add_schedule(&md,100,1.0e-15);
 
        /* activate logging */
        printf("[sic] activate logging\n");
-       moldyn_set_log(&md,LOG_TOTAL_ENERGY,"saves/test-energy",100);
-       moldyn_set_log(&md,VISUAL_STEP,"saves/test-visual",100);
+       moldyn_set_log(&md,LOG_TOTAL_ENERGY,"saves/test-energy",1);
+       moldyn_set_log(&md,VISUAL_STEP,"saves/test-visual",1);
 
        /*
         * let's do the actual md algorithm now