Function t8_forest_global_tree_id
Defined in File t8_forest_general.h
Function Documentation
-
t8_gloidx_t t8_forest_global_tree_id(const t8_forest_t forest, const t8_locidx_t ltreeid)
Return the global id of a local tree or a ghost tree.
See also
https://github.com/DLR-AMR/t8code/wiki/Tree-indexing for more details about tree indexing.
- Parameters:
forest – [in] The forest.
ltreeid – [in] An id 0 <= ltreeid < num_local_trees + num_ghosts specifying a local tree or ghost tree.
- Returns:
The global id corresponding to the tree with local id ltreeid. forest must be committed before calling this function.