We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de803c commit e5fdb03Copy full SHA for e5fdb03
src/solidmodels/solidmodels.jl
@@ -162,7 +162,10 @@ struct SolidModel{T <: SolidModelKernel}
162
set_gmsh_option("Geometry.OCCTargetUnit", "UM")
163
# Use threads in open cascade
164
set_gmsh_option("Geometry.OCCParallel", 1)
165
- set_gmsh_option("General.NumThreads", 0)
+ # Default to no threads, as there appear to be race conditions within gmsh.
166
+ # If set to zero, Gmsh will look for OMP_NUM_THREADS environment variables;
167
+ # this needs to be >1 for HXT algorithm to use parallelism.
168
+ set_gmsh_option("General.NumThreads", 1)
169
170
# Reasonable defaults for meshing.
171
set_gmsh_option("Mesh.MeshSizeFromPoints", 0)
0 commit comments