summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2017-03-30 08:36:40 +0200
committerUlrich Bauer <mail@ulrich-bauer.org>2017-03-30 08:36:40 +0200
commitd898ef27044bc7f10da478d16581915e95edc2c9 (patch)
tree920c089bab5827f1e9b753da049b1e4ef64ee71d
parent92536895274a4632eaff452c56227caa2e3e0e66 (diff)
progress indicator
-rw-r--r--ripser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ripser.cpp b/ripser.cpp
index 53fa4fa..d3aa615 100644
--- a/ripser.cpp
+++ b/ripser.cpp
@@ -489,7 +489,7 @@ public:
if (diameter <= threshold)
columns_to_reduce.push_back(std::make_pair(diameter, index));
#ifdef INDICATE_PROGRESS
- if ((index + 1) % 1000 == 0)
+ if ((index + 1) % 1000000 == 0)
std::cout << "\033[K"
<< "assembled " << columns_to_reduce.size() << " out of "
<< (index + 1) << "/" << num_simplices << " columns" << std::flush
@@ -543,7 +543,7 @@ public:
value_t diameter = get_diameter(column_to_reduce);
#ifdef INDICATE_PROGRESS
- //if ((i + 1) % 1000 == 0)
+ if ((i + 1) % 1000000 == 0)
std::cout << "\033[K"
<< "reducing column " << i + 1 << "/" << columns_to_reduce.size()
<< " (diameter " << diameter << ")" << std::flush << "\r";