Skip to content

Commit

Permalink
reports occupancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Sep 28, 2022
1 parent 719c5cf commit 0c4ac1e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ref_oct.c
Expand Up @@ -223,7 +223,8 @@ REF_FCN REF_STATUS ref_oct_gradation(REF_OCT ref_oct) {
n = ref_oct_n(ref_oct);
while (n != last_n) {
RSS(ref_oct_nleaf(ref_oct, &nleaf), "count leaves");
printf("ncell %d nleaf %d\n", n, nleaf);
printf("ncell %d nleaf %d %5.1f %%\n", n, nleaf,
((REF_DBL)nleaf / (REF_DBL)n) * 100.0);
RSS(ref_oct_gradation_node(ref_oct, 0, ref_oct->bbox), "descend");
last_n = n;
n = ref_oct_n(ref_oct);
Expand Down

0 comments on commit 0c4ac1e

Please sign in to comment.