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

Comparing branches/development/src/applications/nanoparticleBuilder/shapedLatticeRod.cpp (file contents):
Revision 1874 by gezelter, Wed Feb 20 15:39:39 2013 UTC vs.
Revision 1875 by gezelter, Fri May 17 14:41:42 2013 UTC

# Line 82 | Line 82 | namespace OpenMD {
82     */
83    bool shapedLatticeRod::isInterior(Vector3d point){
84  
85 <    RealType x, y, z, distance, delta_z;
85 >    RealType x, y, z, distance;
86  
87      distance = 0;
88      
# Line 91 | Line 91 | namespace OpenMD {
91      z = point[2];
92      
93      if ( abs(z) >= rodLength_/2.0 ) {
94 <      delta_z = abs(z) - rodLength_/2.0;
94 >      RealType delta_z = abs(z) - rodLength_/2.0;
95        distance = sqrt((x*x) + (y*y) + (delta_z*delta_z));
96      } else {
97        distance = sqrt((x*x) + (y*y));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines