From: Anatoly Titov Date: Wed, 24 Jul 2019 14:07:25 +0000 (+0300) Subject: -fashion cleaning X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=commitdiff_plain;h=32ca889bda46e131ee369d1f597323076311c489;p=alexxy%2Fgromacs-spacetimecorr.git -fashion cleaning --- diff --git a/src/spacetimecorr.cpp b/src/spacetimecorr.cpp index 5b97079..a209836 100644 --- a/src/spacetimecorr.cpp +++ b/src/spacetimecorr.cpp @@ -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"; }