From efcebf2294fb0f9c1af3c25f349d7ea58b3476d2 Mon Sep 17 00:00:00 2001 From: Jane Tournois Date: Tue, 13 Dec 2022 11:31:39 +0100 Subject: [PATCH] seed the far points generator to make parallel Mesh_3 with 1 thread deterministic --- Mesh_3/include/CGAL/Mesh_3/Mesher_3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h b/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h index e8f105cd241..0276953543f 100644 --- a/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h +++ b/Mesh_3/include/CGAL/Mesh_3/Mesher_3.h @@ -690,7 +690,7 @@ initialize() # ifdef CGAL_CONCURRENT_MESH_3_VERBOSE std::cerr << "Adding points on a far sphere (radius = " << radius <<")..."; # endif - Random_points_on_sphere_3 random_point(radius); + Random_points_on_sphere_3 random_point(radius, CGAL::Random(0)); const int NUM_PSEUDO_INFINITE_VERTICES = static_cast( float(std::thread::hardware_concurrency()) * Concurrent_mesher_config::get().num_pseudo_infinite_vertices_per_core);