Skip to content

Commit

Permalink
Set level of verbosity of the logger silently (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 authored Jul 22, 2024
1 parent 7791501 commit 42f746f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/skgmsh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
FRONTAL_DELAUNAY_2D = 6
DELAUNAY_3D = 1

SILENT = 0

now = datetime.datetime.now(tz=datetime.timezone.utc)

# major, minor, patch
Expand Down Expand Up @@ -128,6 +130,7 @@ def delaunay_3d(

gmsh.initialize()
gmsh.option.set_number("Mesh.Algorithm3D", DELAUNAY_3D)
gmsh.option.set_number("General.Verbosity", SILENT)

if isinstance(target_sizes, float):
target_sizes = [target_sizes] * edge_source.number_of_points
Expand Down Expand Up @@ -206,6 +209,7 @@ def frontal_delaunay_2d(

gmsh.initialize()
gmsh.option.set_number("Mesh.Algorithm", FRONTAL_DELAUNAY_2D)
gmsh.option.set_number("General.Verbosity", SILENT)

if isinstance(target_sizes, float):
target_sizes = [target_sizes] * edge_source.number_of_points
Expand Down

0 comments on commit 42f746f

Please sign in to comment.