t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Typedefs | Functions
t8_mesh.h File Reference

The mesh object is defined here. More...

#include <t8_element.h>

Go to the source code of this file.

Typedefs

typedef struct t8_mesh t8_mesh_t
 

Functions

t8_mesh_tt8_mesh_new (int dimension, t8_gloidx_t Kglobal, t8_locidx_t Klocal)
 
t8_mesh_tt8_mesh_new_unitcube (t8_eclass_t theclass)
 
void t8_mesh_set_comm (t8_mesh_t *mesh, sc_MPI_Comm comm)
 
void t8_mesh_set_partition (t8_mesh_t *mesh, int enable)
 Determine whether we partition in t8_mesh_build. More...
 
void t8_mesh_set_element (t8_mesh_t *mesh, t8_eclass_t theclass, t8_gloidx_t gloid, t8_locidx_t locid)
 
void t8_mesh_set_local_to_global (t8_mesh_t *mesh, t8_locidx_t ltog_length, const t8_gloidx_t *ltog)
 
void t8_mesh_set_face (t8_mesh_t *mesh, t8_locidx_t locid1, int face1, t8_locidx_t locid2, int face2, int orientation)
 
void t8_mesh_set_element_vertices (t8_mesh_t *mesh, t8_locidx_t locid, t8_locidx_t vids_length, const t8_locidx_t *vids)
 
void t8_mesh_build (t8_mesh_t *mesh)
 Setup a mesh and turn it into a usable object.
 
sc_MPI_Comm t8_mesh_get_comm (t8_mesh_t *mesh)
 
t8_locidx_t t8_mesh_get_element_count (t8_mesh_t *mesh, t8_eclass_t theclass)
 
t8_locidx_t t8_mesh_get_element_class (t8_mesh_t *mesh, t8_locidx_t locid)
 
t8_locidx_t t8_mesh_get_element_locid (t8_mesh_t *mesh, t8_gloidx_t gloid)
 
t8_gloidx_t t8_mesh_get_element_gloid (t8_mesh_t *mesh, t8_locidx_t locid)
 
t8_element_t t8_mesh_get_element (t8_mesh_t *mesh, t8_locidx_t locid)
 
void t8_mesh_get_element_boundary (t8_mesh_t *mesh, t8_locidx_t locid, int length_boundary, t8_locidx_t *elemid, int *orientation)
 
int t8_mesh_get_maximum_support (t8_mesh_t *mesh)
 Return the maximum of the length of the support of any local element.
 
void t8_mesh_get_element_support (t8_mesh_t *mesh, t8_locidx_t locid, int *length_support, t8_locidx_t *elemid, int *orientation)
 
void t8_mesh_destroy (t8_mesh_t *mesh)
 

Detailed Description

The mesh object is defined here.

The mesh object is intended for interfacing from and to other codes. It can be conforming or adaptive, and replicated or distributed in parallel. On input to the creation of a forest, it provides the conforming mesh of coarse elements that are the roots of the tree-based subdivision. The coarse input mesh must be conforming (have no hanging nodes). On output this mesh contains the connectivity of a mesh that has possibly been adaptively refined (has hanging nodes), including information on remote neighbors.

Function Documentation

◆ t8_mesh_get_element_class()

t8_locidx_t t8_mesh_get_element_class ( t8_mesh_t mesh,
t8_locidx_t  locid 
)
Parameters
[in]locidThe local number can specify a point of any dimension that is locally relevant. The points are ordered in reverse to the element classes in t8_eclass_t. The local index is cumulative in this order.

◆ t8_mesh_get_element_support()

void t8_mesh_get_element_support ( t8_mesh_t mesh,
t8_locidx_t  locid,
int *  length_support,
t8_locidx_t elemid,
int *  orientation 
)
Parameters
[in,out]length_support

◆ t8_mesh_set_partition()

void t8_mesh_set_partition ( t8_mesh_t mesh,
int  enable 
)

Determine whether we partition in t8_mesh_build.

Default true.