Function t8_cmesh_ltreeid_to_ghostid
Defined in File t8_cmesh.h
Function Documentation
-
t8_locidx_t t8_cmesh_ltreeid_to_ghostid(const t8_cmesh_t cmesh, const t8_locidx_t ltreeid)
Given a local tree id that belongs to a ghost, return the index of the ghost.
- Parameters:
cmesh – [in] The cmesh to be considered.
ltreeid – [in] The local id of a ghost, satisfying t8_cmesh_treeid_is_ghost, thus num_trees <= ltreeid < num_trees + num_ghosts
- Returns:
The index of the ghost within all ghosts, thus an index 0 <= index < num_ghosts cmesh must be committed before calling this function.