Fixed uninitialized variable warning in grompp.c
authorErik Lindahl <lindahl@cbr.su.se>
Sat, 9 Oct 2010 09:56:53 +0000 (11:56 +0200)
committerErik Lindahl <lindahl@cbr.su.se>
Sat, 9 Oct 2010 09:56:53 +0000 (11:56 +0200)
src/kernel/grompp.c

index a2a6021261e47d4b266ccf258d7ba46e6128fb03..48353f6e70f6e339c93ba3a7e44356f011564938 100644 (file)
@@ -222,6 +222,9 @@ static void check_bonds_timestep(gmx_mtop_t *mtop,double dt,warninp_t wi)
 
     limit2 = sqr(min_steps_note*dt);
 
+    w_a1 = w_a2 = -1;
+    w_period2 = -1.0;
+    
     w_moltype = NULL;
     for(molt=0; molt<mtop->nmoltype; molt++)
     {