I am following the example here to write a vtkhdf file for a HyperTreeGrid generate_simple_htg and was wondering if
# Tree descriptions
descriptors = (
# Tree 0
1, # Depth 1
0, 0, 1, 0, 0, 0, 0, 0, # Depth 2
# Max depth is 3, so nothing is refined on level 3 : no descriptor
# Tree 1
1, # Depth 1
0, 1, 0, 0, 0, 0, 0, 0, # Depth 2
# Tree 3 : refined
1,
)
would be better described like so?
# Tree descriptions
descriptors = (
# Tree 0 (no refinement, no descriptor)
# Tree 1
1, # Depth 1
0, 0, 1, 0, 0, 0, 0, 0, # Depth 2
# Max depth is 3, so nothing is refined on level 3 : no descriptor
# Tree 2
1, # Depth 1
0, 1, 0, 0, 0, 0, 0, 0, # Depth 2
# Tree 3 : refined
1,
)
I had some confusion following the example and believe that this is how the information is being used. Descriptors are only provided in order for the root tree nodes that are being refined. If this is correct the example may need changes similar to what how I annotated the descriptors above. Thanks