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

Comparing trunk/src/integrators/DLM.cpp (file contents):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1697 by skuang, Fri Mar 16 21:17:36 2012 UTC

# Line 108 | Line 108 | namespace OpenMD {
108      RotMat3x3d rot = RotMat3x3d::identity(); // initalize rot as a unit matrix
109  
110      // use a small angle aproximation for sin and cosine
111 <
111 >    /*
112      angleSqr = angle * angle;
113      angleSqrOver4 = angleSqr / 4.0;
114      top = 1.0 - angleSqrOver4;
# Line 116 | Line 116 | namespace OpenMD {
116  
117      cosAngle = top / bottom;
118      sinAngle = angle / bottom;
119 <
119 >    */
120      // or don't use the small angle approximation:
121 <    //cosAngle = cos(angle);
122 <    //sinAngle = sin(angle);
121 >    cosAngle = cos(angle);
122 >    sinAngle = sin(angle);
123 >
124      rot(axes1, axes1) = cosAngle;
125      rot(axes2, axes2) = cosAngle;
126  

Comparing trunk/src/integrators/DLM.cpp (property svn:keywords):
Revision 1390 by gezelter, Wed Nov 25 20:02:06 2009 UTC vs.
Revision 1697 by skuang, Fri Mar 16 21:17:36 2012 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines