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

TODO: document this. More...

#include <t8.h>

Go to the source code of this file.

Data Structures

struct  t8_dtri
 

Macros

#define T8_DTRI_CHILDREN   4
 The number of children that a triangle is refined into.
 
#define T8_DTRI_FACES   3
 The number of faces of a triangle.
 
#define T8_DTRI_FACE_CHILDREN   2
 The number of children that a face of a triangle is refined to.
 
#define T8_DTRI_CORNERS   3
 The number of corners of a triangle.
 
#define T8_DTRI_MAXLEVEL   29
 The maximum refinement level allowed for a triangle.
 
#define T8_DTRI_ROOT_LEN   (1 << (T8_DTRI_MAXLEVEL))
 The length of the root triangle in integer coordinates.
 
#define T8_DTRI_LEN(l)   (1 << (T8_DTRI_MAXLEVEL - (l)))
 The length of a triangle at a given level in integer coordinates.
 
#define T8_DTRI_NUM_TYPES   2
 The number of different types of triangles.
 
#define T8_DLINE_ROOT_BY_DTRI_ROOT   (1 << (T8_DLINE_MAXLEVEL - T8_DTRI_MAXLEVEL))
 The length of a line divided by the length of a triangle. More...
 

Typedefs

typedef int8_t t8_dtri_type_t
 
typedef int32_t t8_dtri_coord_t
 
typedef struct t8_dtri t8_dtri_t
 

Detailed Description

TODO: document this.

Macro Definition Documentation

◆ T8_DLINE_ROOT_BY_DTRI_ROOT

#define T8_DLINE_ROOT_BY_DTRI_ROOT   (1 << (T8_DLINE_MAXLEVEL - T8_DTRI_MAXLEVEL))

The length of a line divided by the length of a triangle.

This is useful to convert boundary coordinates from tri to line.