From dc2f0350ffdb47296a5094caa6184b1541e384ab Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 27 Nov 2014 14:18:29 +0100 Subject: [PATCH] Fix persistence comp. in interpret_persistence() --- include/libstick/persistence.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/libstick/persistence.h b/include/libstick/persistence.h index a2e163f..481d648 100644 --- a/include/libstick/persistence.h +++ b/include/libstick/persistence.h @@ -303,7 +303,9 @@ class persistence { os << birth << "\033[1;31m -> " << death << "\033[0;m"; if (f != NULL) { - const VT pers = f->get_value(death) - f->get_value(birth); + const IT birth_idx = order.order_to_complex(birth); + const IT death_idx = order.order_to_complex(death); + const VT pers = f->get_value(death_idx) - f->get_value(birth_idx); os << " \tpers: " << pers; } } else { -- 2.30.2