30 #ifndef T8_FOREST_GHOST_H
31 #define T8_FOREST_GHOST_H
57 t8_forest_ghost_num_trees (
const t8_forest_t forest);
186 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:191
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:100
int32_t t8_locidx_t
A type for processor-local indexing.
Definition: t8.h:89
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_general.h:42
t8_element_array_t * t8_forest_ghost_get_tree_elements(const t8_forest_t forest, const t8_locidx_t lghost_tree)
Get a pointer to the ghost element array of a ghost tree.
Definition: t8_forest_ghost.cxx:303
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:312
void t8_forest_ghost_ref(t8_forest_ghost_t ghost)
Increase the reference count of a ghost structure.
Definition: t8_forest_ghost.cxx:1909
void t8_forest_ghost_create(t8_forest_t forest)
Create one layer of ghost elements for a forest.
Definition: t8_forest_ghost.cxx:1506
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:1578
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:284
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:1560
t8_gloidx_t t8_forest_ghost_get_global_treeid(const t8_forest_t forest, const t8_locidx_t lghost_tree)
Given a local ghost tree compute the global tree id of it.
Definition: t8_forest_ghost.cxx:344
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:1516
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:1931
void t8_forest_ghost_unref(t8_forest_ghost_t *pghost)
Decrease the reference count of a ghost structure.
Definition: t8_forest_ghost.cxx:1917
int * t8_forest_ghost_get_remotes(t8_forest_t forest, int *num_remotes)
Return the array of remote ranks.
Definition: t8_forest_ghost.cxx:1540
We define here the datatypes needed for internal forest routines.