Commit e13c94ed authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix uninitialized variable bug spotted by coverity scan

parent 812f1a8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ void ComputeHeatFluxTally::compute_vector()
      double ke_i;

      if (rmass) ke_i = pfactor * rmass[i];
      else ke_i *= pfactor * mass[type[i]];
      else ke_i = pfactor * mass[type[i]];
      ke_i *= (vi[0]*vi[0] + vi[1]*vi[1] + vi[2]*vi[2]);
      ke_i += eatom[i];