RVec a pragma {for{a}} -> pragma {for{RVec a}}
authorAnatoly <Titov_AI@pnpi.nrcki.ru>
Tue, 26 Mar 2019 13:26:52 +0000 (16:26 +0300)
committerAnatoly <Titov_AI@pnpi.nrcki.ru>
Tue, 26 Mar 2019 13:26:52 +0000 (16:26 +0300)
src/fitng.cpp

index f5e6bc3ceba1ef1eb22cb235af74b0448869e34a..b2b628e2eaab600524e4f43adfe4f9a2cdb5af3a 100644 (file)
@@ -212,12 +212,11 @@ void searchF0xyzabc (double &F, double &Fx, double &Fy, double &Fz, double &Fa,
 }*/
 
 void ApplyFit (std::vector< RVec > &b, double x, double y, double z, double A, double B, double C) {
-    RVec temp;
     #pragma omp parallel
     {
         #pragma omp for schedule(dynamic)
         for (int i = 0; i < b.size(); i++) {
-            temp = b[i];
+            RVec temp = b[i];
             b[i][0] = (temp[2] + z) * (sin(A) * sin(C) + cos(A) * cos(C) * sin(B)) - (temp[1] + y) * (cos(A) * sin(C) - cos(C) * sin(A) * sin(B)) + cos(B) * cos(C) * (temp[0] + x);
             b[i][1] = (temp[1] + y) * (cos(A) * cos(C) + sin(A) * sin(B) * sin(C)) - (temp[2] + z) * (cos(C) * sin(A) - cos(A) * sin(B) * sin(C)) + cos(B) * sin(C) * (temp[0] + x);
             b[i][2] = cos(A) * cos(B) * (temp[2] + z) - sin(B) * (temp[0] + x) + cos(B) * sin(A) * (temp[1] + y);