diff --git a/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/otr2_simplest_example.cpp b/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/otr2_simplest_example.cpp index 4def459d8bb..a7c23befd11 100644 --- a/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/otr2_simplest_example.cpp +++ b/Optimal_transportation_reconstruction_2/examples/Optimal_transportation_reconstruction_2/otr2_simplest_example.cpp @@ -22,7 +22,11 @@ int main () CGAL::cpp11::copy_n(point_generator, 100, std::back_inserter(points)); Otr otr(points); - otr.run(100); // 100 steps + + if (otr.run(100)) //100 steps + std::cerr << "All done." << std::endl; + else + std::cerr << "Premature ending." << std::endl; return 0; }