--- branches/development/src/applications/nanoparticleBuilder/shapedLatticePentRod.cpp 2012/04/05 19:37:58 1701 +++ 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,11 +89,11 @@ 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)/2)*(x - y); - new_y = (sqrt(2)/2)*(x + y); + new_x = (sqrt(2.0)/2)*(x - y); + new_y = (sqrt(2.0)/2)*(x + y); left_newx = (z - 1.44)*(0.577350269/0.816496581); right_newx = (z + 1.44)*(-0.577350269/0.816496581);