From 841c41689d3f27098c885d047edab2952f0b3b4f Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Wed, 2 Feb 2022 10:17:28 +0100 Subject: [PATCH] update compat bounds for HDF5.jl (#52) * update compat bounds for HDF5.jl * fix breaking WriteVTK change (restricting kwargs to NTuples) --- Project.toml | 2 +- src/vtktools.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 466f399..d717d3a 100644 --- a/Project.toml +++ b/Project.toml @@ -14,7 +14,7 @@ WriteVTK = "64499a7a-5c06-52f2-abe2-ccb03c286192" [compat] Glob = "1.3" -HDF5 = "0.14, 0.15" +HDF5 = "0.14, 0.15, 0.16" ProgressMeter = "1.3" StaticArrays = "0.12, 1.0" TimerOutputs = "0.5" diff --git a/src/vtktools.jl b/src/vtktools.jl index cc42ce6..5ee500b 100644 --- a/src/vtktools.jl +++ b/src/vtktools.jl @@ -71,9 +71,9 @@ function build_vtk_grids(::Val{:vti}, mesh, n_visnodes, verbose, Nx = Ny = resolution + 1 dx = dy = length_level_0/resolution origin = center_level_0 .- 1/2 * length_level_0 - spacing = [dx, dy] + spacing = (dx, dy) @timeit "build VTK grid (node data)" vtk_nodedata = vtk_grid(vtk_filename, Nx, Ny, - origin=origin, + origin=tuple(origin...), spacing=spacing) else vtk_nodedata = nothing