Index: NBody/NBody.py
===================================================================
--- NBody/NBody.py	(revision 178)
+++ NBody/NBody.py	(revision 179)
@@ -381,22 +381,20 @@
     ThetaA=acos(FromCoM.x/Length)+5.e-1f*PI;
     PhiA=atan(FromCoM.y/FromCoM.z);
     // Second tangential vector to sphere of length radius
-    ThetaB=acos(FromCoM.x/Length);
-    PhiB=atan(FromCoM.y/FromCoM.z)+5.e-1f*PI;
+    ThetaB=acos((float)(FromCoM.x/Length));
+    PhiB=atan((float)(FromCoM.y/FromCoM.z))+5.e-1f*PI;
     // (x,y) random coordonates to plane tangential to sphere
     Polar=MWCfp*2.e0f*PI;
-    tA=cos(Polar);
-    tB=sin(Polar);
-    //tA=MWCfp*2.e0f-1.e0f;
-    //tB=MWCfp*2.e0f-1.e0f;
+    tA=cos((float)Polar);
+    tB=sin((float)Polar);
 
     // Exception for 2 particules to ovoid shifting
     if (get_global_size(0)==2) {
        CrossVector=(MYFLOAT4)(1.e0f,1.e0f,1.e0f,0.e0f);
     } else {
-       CrossVector.s0=tA*cos(ThetaA)+tB*cos(ThetaB);
-       CrossVector.s1=tA*sin(ThetaA)*sin(PhiA)+tB*sin(ThetaB)*sin(PhiB);
-       CrossVector.s2=tA*sin(ThetaA)*cos(PhiA)+tB*sin(ThetaB)*cos(PhiB);
+       CrossVector.s0=tA*cos((float)ThetaA)+tB*cos((float)ThetaB);
+       CrossVector.s1=tA*sin((float)ThetaA)*sin((float)PhiA)+tB*sin((float)ThetaB)*sin((float)PhiB);
+       CrossVector.s2=tA*sin((float)ThetaA)*cos((float)PhiA)+tB*sin((float)ThetaB)*cos((float)PhiB);
        CrossVector.s3=0.e0f;
     }
 
