t8
UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
|
Collection of helper routines for building cmeshes. More...
Go to the source code of this file.
Functions | |
void | t8_cmesh_set_join_by_vertices (t8_cmesh_t cmesh, const int ntrees, const t8_eclass_t *eclasses, const double *vertices, int **connectivity, const int do_both_directions) |
Sets the face connectivity information of an un-committed \cmesh based on a list of tree vertices. More... | |
Collection of helper routines for building cmeshes.
void t8_cmesh_set_join_by_vertices | ( | t8_cmesh_t | cmesh, |
const int | ntrees, | ||
const t8_eclass_t * | eclasses, | ||
const double * | vertices, | ||
int ** | connectivity, | ||
const int | do_both_directions | ||
) |
Sets the face connectivity information of an un-committed \cmesh based on a list of tree vertices.
[in,out] | cmesh | Pointer to a t8code cmesh object. If set to NULL this argument is ignored. |
[in] | ntrees | Number of coarse mesh elements resp. trees. |
[in] | vertices | List of per element vertices with dimensions [ntrees,T8_ECLASS_MAX_CORNERS,T8_ECLASS_MAX_DIM]. |
[in] | eclasses | List of element classes of length [ntrees]. |
[in,out] | connectivity | If connectivity is not NULL the variable is filled with a pointer to an allocated face connectivity array. The ownership of this array goes to the caller. This argument is mainly used for debugging and testing purposes. The dimension of connectivity are [ntrees,T8_ECLASS_MAX_FACES,3]. For each element and each face the following is stored: neighbor_tree_id, neighbor_dual_face_id, orientation |
[in] | do_both_directions | Compute the connectivity from both neighboring sides. Takes much longer to compute. |