-fashion cleaning
authorAnatoly Titov <toluk@omrb.pnpi.spb.ru>
Wed, 24 Jul 2019 14:07:25 +0000 (17:07 +0300)
committerAnatoly Titov <toluk@omrb.pnpi.spb.ru>
Wed, 24 Jul 2019 14:07:25 +0000 (17:07 +0300)
src/spacetimecorr.cpp

index 5b970795466dd994d428dd51b5f0f50788605f70..a209836405110ff4ed86fb2d2ea38e121afe95c0 100644 (file)
@@ -188,16 +188,15 @@ void make_rout_file(double crl_border, std::vector< int > indx, std::vector< std
             std::set_difference(temp03.begin(), temp03.end(), temp04.begin(), temp04.end(), std::inserter(temp05, temp05.begin()));
             std::fprintf(file01, "minus:\n");
             for (unsigned int i02 = 0; i02 < temp05.size(); i02++) {
-                    std::fprintf(file01, "cgo_arrow (id %3d), (id %3d), radius=0.075\n", indx[temp05[i02].first] + 1, indx[temp05[i02].second] + 1);
+                std::fprintf(file01, "cgo_arrow (id %3d), (id %3d), radius=0.075\n", indx[temp05[i02].first] + 1, indx[temp05[i02].second] + 1);
             }
 
             temp05.resize(0);
             std::set_difference(temp04.begin(), temp04.end(), temp03.begin(), temp03.end(), std::inserter(temp05, temp05.begin()));
             std::fprintf(file01, "plus:\n");
             for (unsigned int i02 = 0; i02 < temp05.size(); i02++) {
-                    std::fprintf(file01, "cgo_arrow (id %3d), (id %3d), radius=0.075\n", indx[temp05[i02].first] + 1, indx[temp05[i02].second] + 1);
+                std::fprintf(file01, "cgo_arrow (id %3d), (id %3d), radius=0.075\n", indx[temp05[i02].first] + 1, indx[temp05[i02].second] + 1);
             }
-
         }
         pre = f;
     }
@@ -698,10 +697,9 @@ SpaceTimeCorr::finishAnalysis(int nframes)
 
         }
         #pragma omp barrier
+        make_rout_file(static_cast< double >(crl_border), index, resNms, rout_new, (OutPutName + "-routs.txt").c_str());
     }
 
-    make_rout_file(static_cast< double >(crl_border), index, resNms, rout_new, (OutPutName + "-routs.txt").c_str());
-
     std::cout << "Finish Analysis - end\n\n";
 }