summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Bottleneck_distance/example/bottleneck_read_file_example.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp b/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp
index 94d9a148..6cfbeafa 100644
--- a/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp
+++ b/src/Bottleneck_distance/example/bottleneck_read_file_example.cpp
@@ -34,6 +34,7 @@ int main(int argc, char** argv) {
std::cout << "To run this program please provide as an input two files with persistence diagrams. Each file " <<
"should contain a birth-death pair per line. Third, optional parameter is an error bound on a bottleneck" <<
" distance (set by default to zero). The program will now terminate \n";
+ //return -1;
}
std::vector<std::pair<double, double>> diag1 = read_persistence_intervals_in_dimension(argv[1]);
std::vector<std::pair<double, double>> diag2 = read_persistence_intervals_in_dimension(argv[2]);
@@ -44,4 +45,6 @@ int main(int argc, char** argv) {
}
double b = Gudhi::persistence_diagram::bottleneck_distance(diag1, diag2, tolerance);
std::cout << "The distance between the diagrams is : " << b << ". The tolerance is : " << tolerance << std::endl;
+
+ return 0;
}