diff options
Diffstat (limited to 'src/Tangential_complex/benchmark')
-rw-r--r-- | src/Tangential_complex/benchmark/XML_exporter.h | 2 | ||||
-rw-r--r-- | src/Tangential_complex/benchmark/benchmark_tc.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/Tangential_complex/benchmark/XML_exporter.h b/src/Tangential_complex/benchmark/XML_exporter.h index 16b62eb6..38fe049f 100644 --- a/src/Tangential_complex/benchmark/XML_exporter.h +++ b/src/Tangential_complex/benchmark/XML_exporter.h @@ -157,7 +157,7 @@ class Streaming_XML_exporter { m_xml_fstream << " </" << m_element_name << ">" << std::endl; // Save current pointer position - std::ofstream::streampos pos = m_xml_fstream.tellp(); + auto pos = m_xml_fstream.tellp(); // Close the XML file (temporarily) so that the XML file is always correct m_xml_fstream << "</" << m_list_name << ">" << std::endl; // Restore the pointer position so that the next "add_element" will overwrite diff --git a/src/Tangential_complex/benchmark/benchmark_tc.cpp b/src/Tangential_complex/benchmark/benchmark_tc.cpp index e3b2a04f..8e7c72ff 100644 --- a/src/Tangential_complex/benchmark/benchmark_tc.cpp +++ b/src/Tangential_complex/benchmark/benchmark_tc.cpp @@ -33,6 +33,7 @@ const std::size_t ONLY_LOAD_THE_FIRST_N_POINTS = 20000000; #include <gudhi/sparsify_point_set.h> #include <gudhi/random_point_generators.h> #include <gudhi/Tangential_complex/utilities.h> +#include <gudhi/Simplex_tree.h> #include <CGAL/assertions_behaviour.h> #include <CGAL/Epick_d.h> @@ -704,7 +705,7 @@ int main() { points = Gudhi::generate_points_on_torus_d<Kernel>( num_points, intrinsic_dim, - param1 == "Y", // uniform + (param1 == "Y") ? "grid" : "random", // grid or random sample type std::atof(param2.c_str())); // radius_noise_percentage } else if (input == "generate_klein_bottle_3D") { points = Gudhi::generate_points_on_klein_bottle_3D<Kernel>( |