Skip to content

Commit 58315d5

Browse files
committed
Switch to single threaded default, resolving possible race condition
1 parent fc7e961 commit 58315d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/solidmodels/render.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,8 @@ function render!(
924924

925925
# With the setting below, Gmsh will look for OMP_NUM_THREADS environment variables;
926926
# this needs to be >1 for HXT algorithm to use parallelism.
927-
set_gmsh_option("General.NumThreads", gmsh_options, 0)
927+
# Default to no threads, as there appear to be race conditions within gmsh.
928+
set_gmsh_option("General.NumThreads", gmsh_options, 1)
928929

929930
# Always save meshes in binary for faster disk I/O
930931
set_gmsh_option("Mesh.Binary", gmsh_options, 1)

0 commit comments

Comments
 (0)