mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-27 12:16:56 +00:00
refactor(io): use Logging for Gmsh reader progress
Replace unconditional `println` chatter with structured `@info` events so library callers can filter noise via the standard logging pipeline. - Log the filename when ingest starts and emit a single summary record with node/element counts plus physical group keys.
This commit is contained in:
@@ -26,7 +26,7 @@ end
|
||||
Read Gmsh mesh file (ASCII format 4.1)
|
||||
"""
|
||||
function read_gmsh_mesh(filename::String)
|
||||
println("Reading Gmsh mesh: $filename")
|
||||
@info "Reading Gmsh mesh" filename
|
||||
|
||||
# Storage
|
||||
nodes = Dict{Int,Vector{Float64}}()
|
||||
@@ -143,9 +143,7 @@ function read_gmsh_mesh(filename::String)
|
||||
|
||||
mesh = GmshMesh(node_matrix, elem_matrix, groups)
|
||||
|
||||
println(" Nodes: $(size(node_matrix, 2))")
|
||||
println(" Elements: $(size(elem_matrix, 2))")
|
||||
println(" Physical groups: $(keys(groups))")
|
||||
@info "Gmsh mesh loaded" nodes = size(node_matrix, 2) elements = size(elem_matrix, 2) physical_groups = collect(keys(groups))
|
||||
|
||||
return mesh
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user