ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/primitives/Bend.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/primitives/Bend.cpp (file contents):
Revision 1748 by tim, Wed Nov 17 21:47:42 2004 UTC vs.
Revision 1753 by tim, Thu Nov 18 05:42:06 2004 UTC

# Line 35 | Line 35 | void Bend::calcForce() {
35  
36      double sinTheta = sqrt(1.0 - cosTheta * cosTheta);
37  
38 <    if (fabs(sinTheta) < 1.0E - 12) {
39 <        sinTheta = 1.0E - 12;
38 >    if (fabs(sinTheta) < 1.0E -12) {
39 >        sinTheta = 1.0E -12;
40      }
41  
42      double commonFactor1 = -firstDerivative / sinTheta * d12inv;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines