From 2ceede5cd9f226e66bb1ecbe1798330c349c2aa0 Mon Sep 17 00:00:00 2001 From: cjamin Date: Fri, 9 Jun 2017 10:39:31 +0000 Subject: Missing "return" git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/read_persistence_from_file@2532 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 8905e0d3406cbe26615b83ab7056e7fd5bd8ed0e --- src/Bottleneck_distance/example/bottleneck_read_file_example.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Bottleneck_distance') 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> diag1 = read_persistence_intervals_in_dimension(argv[1]); std::vector> 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; } -- cgit v1.2.3