Skip to content

Commit

Permalink
Update read.jl
Browse files Browse the repository at this point in the history
add verbose to compute_space_dim
  • Loading branch information
bmxam authored Dec 3, 2024
1 parent 72dd8ce commit 986be53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hdf5/read.jl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function read_zone(zone, varnames, topo_dim, zone_space_dim, usr_space_dim, verb
end

# Resize the `coords` array if necessary
_space_dim = usr_space_dim > 0 ? usr_space_dim : compute_space_dim(topo_dim, coords)
_space_dim = usr_space_dim > 0 ? usr_space_dim : compute_space_dim(topo_dim, coords; verbose)
coords = coords[:, 1:_space_dim]

# Read all elements
Expand Down Expand Up @@ -427,7 +427,7 @@ function flow_solutions_to_bcube_data(fSols)
)
end

function compute_space_dim(topodim, coords, tol = 1e-15, verbose = true)
function compute_space_dim(topodim, coords, tol = 1e-15; verbose = true)
spacedim = size(coords, 2)

xmin, xmax = extrema(view(coords, :, 1))
Expand Down

0 comments on commit 986be53

Please sign in to comment.