- fixed a bug with a wrong constant
authorAnatoly <Titov_AI@pnpi.nrcki.ru>
Fri, 2 Oct 2020 12:21:17 +0000 (15:21 +0300)
committerAnatoly <Titov_AI@pnpi.nrcki.ru>
Fri, 2 Oct 2020 12:21:17 +0000 (15:21 +0300)
src/corrtype.cpp
src/spacetimecorr.cpp

index 44530fff6faa110f82f32b4e69f5b024aad92135..be95916ccc2a421472ed5e67df026544a63203a8 100644 (file)
@@ -34,36 +34,26 @@ void correlationType::setDefaults(const std::vector< RVec > &ref, int wnd, int t
 }
 
 void correlationType::update(const int frameNum, const std::vector< RVec > &curFrame) {
-    std::cout << "\tola001";
     trajectory.push_back(curFrame);
     size_t temp = window + tau;
-    std::cout << "\tola002";
     if (trajectory.size() == temp + 1) {
         trajectory.erase(trajectory.begin());
     }
-    std::cout << "\tola003";
     if (mode == 1) {
-        std::cout << "\tola004";
-        if ((frameNum - temp + 1) % tauStep == 0) {
-            std::cout << "ola005.1" << std::endl;
+        if ((frameNum - temp + 1) % window == 0) {
             correlationEval();
             selections.erase(selections.begin());
-            std::cout << "ola005.2" << std::endl;
+            std::cout << "\n\t\tcorrEval successful\n" << std::endl;
         }
     }
-    std::cout << "\tola006";
 }
 
 void correlationType::readEval() {
-    std::cout << "ola005" << std::endl;
     if (mode == 0) {
         readWriteCorrelations(0);
         subGraphRouts.resize(subGraphRouts.size() + 1);
-        std::cout << "ola006" << std::endl;
         graphCalculations(1, static_cast< size_t >(tau));
-        std::cout << "ola007" << std::endl;
         graphBackBoneEvaluation();
-        std::cout << "ola008" << std::endl;
     }
 }
 
index f465b98cf38e0349564fce2464dfd3b2da442e96..124e706cf976776a01a9c3ec79e744eb890a5918 100644 (file)
@@ -228,7 +228,7 @@ SpaceTimeCorr::analyzeFrame(int frnr, const t_trxframe &fr, t_pbc *pbc, Trajecto
         trajectoryFrame[i] = fr.x[index[i]];
     }
     corrs.update(frnr, trajectoryFrame);
-    //std::cout << "\n\t\t" << frnr;
+    std::cout << "\n\t\t" << frnr;
 }
 
 void