Skip to content

Commit

Permalink
Merge pull request #98 from fusion-energy/shimwell-patch-6
Browse files Browse the repository at this point in the history
using all CPU cores to mesh
  • Loading branch information
shimwell authored Nov 13, 2024
2 parents 7735bdf + 823750c commit 2a0596c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cad_to_dagmc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ def _mesh_brep(
gmsh.option.setNumber("Mesh.Algorithm", mesh_algorithm)
gmsh.option.setNumber("Mesh.MeshSizeMin", min_mesh_size)
gmsh.option.setNumber("Mesh.MeshSizeMax", max_mesh_size)
gmsh.option.setNumber("General.NumThreads", 0) # Use all available cores
gmsh.model.mesh.generate(dimensions)

return gmsh
Expand Down

0 comments on commit 2a0596c

Please sign in to comment.