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

Comparing trunk/OOPSE-4/src/math/RealSphericalHarmonic.hpp (file contents):
Revision 2758 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 2759 by tim, Wed May 17 21:51:42 2006 UTC

# Line 50 | Line 50
50   #define MATH_REALSPHERICALHARMONIC_HPP
51  
52   #include <string.h>
53 <
53 > #include "config.h"
54   #define RSH_SIN  0
55   #define RSH_COS  1
56  
# Line 67 | Line 67 | namespace oopse {
67      void setM(int theM) { M = theM; };
68      int getM() { return M; }
69      
70 <    void setCoefficient(double co) {coefficient = co;}
71 <    double getCoefficient() {return coefficient;}
70 >    void setCoefficient(RealType co) {coefficient = co;}
71 >    RealType getCoefficient() {return coefficient;}
72  
73      void setFunctionType(short int theType) {functionType = theType;}
74      short int getFunctionType() { return functionType; }
# Line 79 | Line 79 | namespace oopse {
79      bool isSinFunction() { return functionType == RSH_SIN ? true : false;}
80      bool isCosFunction() { return functionType == RSH_COS ? true : false;}
81      
82 <    double getValueAt(double costheta, double phi);
82 >    RealType getValueAt(RealType costheta, RealType phi);
83      
84    protected:
85      
86 <    double LegendreP (int l, int m, double x);
86 >    RealType LegendreP (int l, int m, RealType x);
87      
88      int L;
89      int M;
90      short int functionType;
91 <    double coefficient;
91 >    RealType coefficient;
92      
93    };
94   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines