Fix FP exception in FE
authorRoland Schulz <roland@utk.edu>
Mon, 26 Jan 2015 08:29:13 +0000 (03:29 -0500)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Mon, 2 Feb 2015 13:15:08 +0000 (14:15 +0100)
Part of #1677

Change-Id: I212d52a232763e3f3b3652ea488ba5e05683aab1

src/gromacs/listed-forces/listed-forces.cpp

index 8e6a50656d305e9e6ed14d7296f90f4e27d52f37..1864494bf495d4e2ee205a62d3d169deff4181e4 100644 (file)
@@ -509,7 +509,7 @@ void calc_listed_lambda(const t_idef *idef,
 {
     int           ftype, nr_nonperturbed, nr;
     real          v;
-    real          dvdl_dum[efptNR];
+    real          dvdl_dum[efptNR] = {0};
     rvec         *f, *fshift;
     const  t_pbc *pbc_null;
     t_idef        idef_fe;