This function provides the parent ID of a given tree ID on a given level.
The parent ID on a given level is calculated using the equation \f[ id_{l-1}=\frac{id_{l}-1}{8} \f] in a loop.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=long_k), | intent(in) | :: | TreeID | treeID of which the pID is requested |
||
integer, | intent(in) | :: | level | the level on which the pID is requested |
resulting parent ID
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | private | :: | cLevel | ||||
integer, | private | :: | iLevel |