Skip to content

Commit

Permalink
move capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielDoehring committed Nov 21, 2023
1 parent a0cf488 commit b4a1ae1
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 @@ -30,6 +30,7 @@ function save_mesh_file(mesh::TreeMesh, output_directory, timestep,
attributes(file)["mesh_type"] = get_name(mesh)
attributes(file)["ndims"] = ndims(mesh)
attributes(file)["n_cells"] = n_cells
attributes(file)["capacity"] = mesh.tree.capacity
attributes(file)["n_leaf_cells"] = count_leaf_cells(mesh.tree)
attributes(file)["minimum_level"] = minimum_level(mesh.tree)
attributes(file)["maximum_level"] = maximum_level(mesh.tree)
Expand All @@ -43,7 +44,6 @@ function save_mesh_file(mesh::TreeMesh, output_directory, timestep,
file["neighbor_ids"] = @view mesh.tree.neighbor_ids[:, 1:n_cells]
file["levels"] = @view mesh.tree.levels[1:n_cells]
file["coordinates"] = @view mesh.tree.coordinates[:, 1:n_cells]
file["capacity"] = mesh.tree.capacity
end

return filename
Expand Down

0 comments on commit b4a1ae1

Please sign in to comment.