From 986be53376078fdc053ba1ecfb57861a662ce874 Mon Sep 17 00:00:00 2001 From: bmxam Date: Tue, 3 Dec 2024 09:40:40 +0100 Subject: [PATCH] Update read.jl add verbose to compute_space_dim --- src/hdf5/read.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hdf5/read.jl b/src/hdf5/read.jl index 789dcb4..81bc8de 100644 --- a/src/hdf5/read.jl +++ b/src/hdf5/read.jl @@ -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 @@ -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))