[AMBER] Bug in cpptraj (AmberTools 13)

From: Ake Sandgren <ake.sandgren.hpc2n.umu.se>
Date: Mon, 06 May 2013 08:07:12 +0200

Hi!

After upgrading to AT 13 i found yet another uninitialized variable.

diff -ru amber12/AmberTools/src/cpptraj/src/Matrix_3x3.cpp
amber12-p01/AmberTools/src/cpptraj/src/Matrix_3x3.cpp
--- amber12/AmberTools/src/cpptraj/src/Matrix_3x3.cpp 2013-05-02
13:16:15.000000000 +0200
+++ amber12-p01/AmberTools/src/cpptraj/src/Matrix_3x3.cpp 2013-05-03
08:40:42.436891447 +0200
.. -139,7 +139,7 ..
   vecZ[2] = 0;
   // MAIN LOOP
   double tresh = 0;
- int nrot;
+ int nrot = 0;
   for (int i = 0; i < MAX_ITERATIONS; ++i) {
     // sm = SUM of UPPER RIGHT TRIANGLE
     double sm = fabs(mat[1]) + fabs(mat[2]) + fabs(mat[5]);




_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sun May 05 2013 - 23:30:03 PDT
Custom Search