ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/math/SphericalHarmonic.cpp
(Generate patch)

Comparing trunk/src/math/SphericalHarmonic.cpp (file contents):
Revision 1879 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 2071 by gezelter, Sat Mar 7 21:41:51 2015 UTC

# Line 84 | Line 84 | RealType SphericalHarmonic::LegendreP(int l,int m, Rea
84      printf("LegendreP: m < 0: l = %d\tm = %d\tx = %lf\n", l, m, x);
85      return std::numeric_limits <RealType>:: quiet_NaN();
86    } else {
87 <    RealType temp1, temp2, temp3, temp4, temp5;
87 >    RealType temp1, temp2(0.0), temp3, temp4, temp5;
88      temp3=1.0;
89      
90      if (m>0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines