routs' test
authorAnatoly Titov <toluk@omrb.pnpi.spb.ru>
Tue, 16 May 2017 22:05:54 +0000 (01:05 +0300)
committerAnatoly Titov <toluk@omrb.pnpi.spb.ru>
Tue, 16 May 2017 22:05:54 +0000 (01:05 +0300)
src/spacetimecorr.cpp

index d0cb0773fc501f961a5477420bc6d515de6a4374..f6c4abba484fe7099827e1f6899006840ce05a60 100644 (file)
@@ -610,8 +610,8 @@ Domains::finishAnalysis(int nframes)
                         }
                     }
                 }
-                if (flag222 && flag3.size() > 2) {
-                    rout_new.push_back(flag3);
+                if (flag222 && rout_old[i].size() > 2) {
+                    rout_new.push_back(rout_old[i]);
                 }
             }
         }
@@ -619,7 +619,6 @@ Domains::finishAnalysis(int nframes)
             std::cout << rout_old.size() << " -> " << rout_new.size() << "\n";
             rout_old = rout_new;
             rout_new.resize(0);
-
         }
     }
 
@@ -650,6 +649,17 @@ Domains::finishAnalysis(int nframes)
         }
     }*/
 
+
+    std::cout << "\n test old \n";
+    for (int i = 0; i < rout_old.size(); i++) {
+        for (int j = 0; j < rout_old[i].size(); j++) {
+            std::cout << index[rout_old[i][j]] << " ";
+        }
+        std::cout << "\n";
+    }
+
+    std::cout << "\n test new \n";
+
     rout_new.resize(0);
     for (int i = rout_old.size() - 1; i > 0; i--) {
         bool lflag1 = true;