From 3bda0519dbd084937cd05eb339a4d35b1a6f4d9f Mon Sep 17 00:00:00 2001 From: Daniel Doehring Date: Fri, 22 Sep 2023 13:14:40 +0200 Subject: [PATCH] Print leaf cells for tree meshes (#1645) --- src/meshes/tree_mesh.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/meshes/tree_mesh.jl b/src/meshes/tree_mesh.jl index 93ba982bce9..05699d17d16 100644 --- a/src/meshes/tree_mesh.jl +++ b/src/meshes/tree_mesh.jl @@ -199,6 +199,7 @@ function Base.show(io::IO, ::MIME"text/plain", "length" => mesh.tree.length_level_0, "periodicity" => mesh.tree.periodicity, "current #cells" => mesh.tree.length, + "#leaf-cells" => count_leaf_cells(mesh.tree), "maximum #cells" => mesh.tree.capacity, ] summary_box(io, "TreeMesh{" * string(NDIMS) * ", " * string(TreeType) * "}",