Function t8_forest_ghost_fill_remote
Defined in File t8_forest_ghost.cxx
Function Documentation
-
static void t8_forest_ghost_fill_remote(t8_forest_t forest, t8_forest_ghost_t ghost, int ghost_method)
Fill the remote ghosts of a ghost structure. We iterate through all elements and check if their neighbors lie on remote processes. If so, we add the element to the remote_ghosts array of ghost. We also fill the remote_processes here. If ghost_method is 0, then we assume a balanced forest and construct the remote processes by looking at the half neighbors of an element. Otherwise, we use the owners_at_face method.
- Parameters:
forest – [in] The forest.
ghost – [in] The forest’s ghost.
ghost_method – [in] Switch indicating the ghost type.