Skip to content

Commit

Permalink
Update src/meshes/mesh_io.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Schlottke-Lakemper <[email protected]>
  • Loading branch information
DanielDoehring and sloede authored Nov 21, 2023
1 parent 5367041 commit 366cfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/meshes/mesh_io.jl
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function load_mesh_serial(mesh_file::AbstractString; n_cells_max, RealT)

if mesh_type == "TreeMesh"
capacity = h5open(mesh_file, "r") do file
return read(file["capacity"])
return read(attributes(file)["capacity"])
end
mesh = TreeMesh(SerialTree{ndims}, max(n_cells_max, capacity))
load_mesh!(mesh, mesh_file)
Expand Down

0 comments on commit 366cfa9

Please sign in to comment.