Skip to content
Permalink
Browse files

progress indicator

  • Loading branch information...
ubauer committed Mar 30, 2017
1 parent 9253689 commit d898ef27044bc7f10da478d16581915e95edc2c9
Showing with 2 additions and 2 deletions.
  1. +2 −2 ripser.cpp
@@ -489,7 +489,7 @@ class ripser {
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 @@ class ripser {
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";

0 comments on commit d898ef2

Please sign in to comment.
You can’t perform that action at this time.