--- trunk/src/applications/nanoparticleBuilder/shapedLatticePentRod.cpp 2012/08/29 20:52:19 1789 +++ trunk/src/applications/nanoparticleBuilder/shapedLatticePentRod.cpp 2012/08/30 17:18:22 1790 @@ -58,8 +58,6 @@ namespace OpenMD { rodRadius_= radius; rodLength_= length; - double x, y, z, new_x, new_y, new_z, new_x72, new_z72, left_newx, right_newx, left_newx72, right_newx72; - int z_int; Vector3d dimension; dimension[0] = 2.0*length; dimension[1] = 2.0*length; @@ -91,7 +89,7 @@ namespace OpenMD { y = point[1]; z = point[2]; - z_int = z/2.04; + z_int = int(z/2.04); //Rotate by 45 degrees around z-axis so length of rod lies along y axis new_x = (sqrt(2.0)/2)*(x - y);