@@ -888,23 +888,21 @@ function render!(
888888 _synchronize! (sm)
889889 _fragment_and_map! (sm)
890890
891- set_gmsh_option (" General.NumThreads" , 0 )
892-
893891 # Pass in call back function for meshing against the vertices found previously.
894892 gmsh. model. mesh. setSizeCallback (gmsh_meshsize)
895893
896894 set_gmsh_option (" Mesh.MeshSizeFromPoints" , gmsh_options, 0 )
897- set_gmsh_option (" Mesh.MeshSizeFromCurvature" , 0 )
898- set_gmsh_option (" Mesh.MeshSizeExtendFromBoundary" , 0 )
895+ set_gmsh_option (" Mesh.MeshSizeFromCurvature" , gmsh_options, 0 )
896+ set_gmsh_option (" Mesh.MeshSizeExtendFromBoundary" , gmsh_options, 0 )
899897 set_gmsh_option (" Mesh.Algorithm" , gmsh_options, 6 )
900898 set_gmsh_option (" Mesh.Algorithm3D" , gmsh_options, 1 )
901899
902900 # With the setting below, Gmsh will look for OMP_NUM_THREADS environment variables;
903901 # this needs to be >1 for HXT algorithm to use parallelism.
904- set_gmsh_option (" General.NumThreads" , 1 )
902+ set_gmsh_option (" General.NumThreads" , gmsh_options, 0 )
905903
906904 # Always save meshes in binary for faster disk I/O
907- set_gmsh_option (" Mesh.Binary" , 1 )
905+ set_gmsh_option (" Mesh.Binary" , gmsh_options, 1 )
908906
909907 # Remove all physical groups except those on the retained list.
910908 if ! isempty (retained_physical_groups)
0 commit comments