30 #ifndef T8_FOREST_GHOST_H
31 #define T8_FOREST_GHOST_H
187 void t8_forest_ghost_create_topdown (
t8_forest_t forest);
The t8_element_array_t is an array to store t8_element_t * of a given eclass_scheme implementation.
Definition: t8_containers.h:42
Definition: t8_forest_types.h:185
This structure is private to the implementation.
Definition: t8_forest_types.h:69
This is the administrative header file for t8code.
int64_t t8_gloidx_t
A type for global indexing that holds really big numbers.
Definition: t8.h:105
int32_t t8_locidx_t
A type for processor-local indexing.
Definition: t8.h:94
enum t8_eclass t8_eclass_t
This enumeration contains all possible element classes.
struct t8_element t8_element_t
Opaque structure for a generic element, only used as pointer.
Definition: t8_element.h:42
t8_ghost_type_t
This type controls, which neighbors count as ghost elements.
Definition: t8_forest.h:46
t8_locidx_t t8_forest_ghost_get_ghost_treeid(t8_forest_t forest, t8_gloidx_t gtreeid)
Given a global tree compute the ghost local tree id of it.
Definition: t8_forest_ghost.cxx:342
void t8_forest_ghost_ref(t8_forest_ghost_t ghost)
Increase the reference count of a ghost structure.
Definition: t8_forest_ghost.cxx:2099
t8_gloidx_t t8_forest_ghost_get_global_treeid(t8_forest_t forest, t8_locidx_t lghost_tree)
Given a local ghost tree compute the global tree id of it.
Definition: t8_forest_ghost.cxx:375
void t8_forest_ghost_create(t8_forest_t forest)
Create one layer of ghost elements for a forest.
Definition: t8_forest_ghost.cxx:1655
t8_element_array_t * t8_forest_ghost_get_tree_elements(t8_forest_t forest, t8_locidx_t lghost_tree)
Get a pointer to the ghost element array of a ghost tree.
Definition: t8_forest_ghost.cxx:332
t8_locidx_t t8_forest_ghost_remote_first_elem(t8_forest_t forest, int remote)
Return the local index of the first ghost element that belongs to a given remote rank.
Definition: t8_forest_ghost.cxx:1727
t8_locidx_t t8_forest_ghost_get_tree_element_offset(t8_forest_t forest, t8_locidx_t lghost_tree)
Return the element offset of a ghost tree.
Definition: t8_forest_ghost.cxx:311
t8_locidx_t t8_forest_ghost_remote_first_tree(t8_forest_t forest, int remote)
Return the first local ghost tree of a remote rank.
Definition: t8_forest_ghost.cxx:1709
void t8_forest_ghost_create_balanced_only(t8_forest_t forest)
Create one layer of ghost elements for a forest.
Definition: t8_forest_ghost.cxx:1665
void t8_forest_ghost_destroy(t8_forest_ghost_t *pghost)
Verify that a ghost structure has only one reference left and destroy it.
Definition: t8_forest_ghost.cxx:2121
void t8_forest_ghost_unref(t8_forest_ghost_t *pghost)
Descrease the reference count of a ghost structure.
Definition: t8_forest_ghost.cxx:2107
int * t8_forest_ghost_get_remotes(t8_forest_t forest, int *num_remotes)
Return the array of remote ranks.
Definition: t8_forest_ghost.cxx:1689
We define here the datatypes needed for internal forest routines.