ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-2.0/src/math/RealSphericalHarmonic.cpp
(Generate patch)

Comparing trunk/OOPSE-2.0/src/math/RealSphericalHarmonic.cpp (file contents):
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2223 by chuckv, Wed May 11 23:15:05 2005 UTC

# Line 41 | Line 41
41  
42   #include <stdio.h>
43   #include <cmath>
44 <
44 > #include <limits>
45   #include "math/RealSphericalHarmonic.hpp"
46  
47   using namespace oopse;
# Line 85 | Line 85 | double RealSphericalHarmonic::LegendreP (int l, int m,
85    // check parameters
86    if (m < 0 || m > l || fabs(x) > 1.0) {
87      printf("LegendreP got a bad argument: l = %d\tm = %d\tx = %lf\n", l, m, x);
88 <    return NAN;
88 > //    return NAN;
89 >        return std::numeric_limits <double>:: quiet_NaN();
90    }
91    
92    double pmm = 1.0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines