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

Comparing branches/development/src/applications/nanoparticleBuilder/shapedLatticePentRod.cpp (file contents):
Revision 1701 by kstocke1, Thu Apr 5 19:37:58 2012 UTC vs.
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC

# Line 94 | Line 94 | namespace OpenMD {
94      z_int = z/2.04;
95  
96      //Rotate by 45 degrees around z-axis so length of rod lies along y axis
97 <    new_x = (sqrt(2)/2)*(x - y);
98 <    new_y = (sqrt(2)/2)*(x + y);
97 >    new_x = (sqrt(2.0)/2)*(x - y);
98 >    new_y = (sqrt(2.0)/2)*(x + y);
99  
100      left_newx = (z - 1.44)*(0.577350269/0.816496581);
101      right_newx = (z + 1.44)*(-0.577350269/0.816496581);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines