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

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

# Line 55 | Line 55 | namespace oopse {
55      
56    public:
57  
58 <    HarmonicBondType(double myR0, double myK) : BondType(myR0) {
58 >    HarmonicBondType(RealType myR0, RealType myK) : BondType(myR0) {
59        k = myK;
60      }
61      
62 <    void setForceConstant(double myK) {k = myK; }
62 >    void setForceConstant(RealType myK) {k = myK; }
63  
64 <    double getForceConstant() {return k;}
64 >    RealType getForceConstant() {return k;}
65  
66 <    virtual void calcForce(double r, double& V, double& dVdr) {
67 <      double dr;
66 >    virtual void calcForce(RealType r, RealType& V, RealType& dVdr) {
67 >      RealType dr;
68  
69        dr = r - r0;
70        
# Line 74 | Line 74 | namespace oopse {
74                  
75    private:
76      
77 <    double k;
77 >    RealType k;
78      
79    };
80   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines