ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/trunk/src/constraints/ConstraintPair.hpp
(Generate patch)

Comparing trunk/src/constraints/ConstraintPair.hpp (file contents):
Revision 962 by gezelter, Fri Apr 15 22:04:00 2005 UTC vs.
Revision 963 by tim, Wed May 17 21:51:42 2006 UTC

# Line 56 | Line 56 | namespace oopse {
56  
57    public:
58  
59 <    ConstraintPair(ConstraintElem* elem1, ConstraintElem* elem2, double len)
59 >    ConstraintPair(ConstraintElem* elem1, ConstraintElem* elem2, RealType len)
60        : consElem1_(elem1), consElem2_(elem2), dist2(len*len) { }
61  
62      ~ConstraintPair() {
# Line 70 | Line 70 | namespace oopse {
70      ConstraintElem* getConsElem2() {return consElem2_;}
71  
72      bool isMoved() { return consElem1_->getMoved() || consElem2_->getMoved(); }        
73 <    double getConsDistSquare() {return dist2;}
73 >    RealType getConsDistSquare() {return dist2;}
74  
75    private:
76          
77      ConstraintElem* consElem1_;
78      ConstraintElem* consElem2_;        
79 <    double dist2;
79 >    RealType dist2;
80    };
81  
82   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines