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

This header provides the C interface to create a linear geometry. More...

#include <t8.h>
#include <t8_geometry/t8_geometry.h>

Go to the source code of this file.

Functions

t8_geometry_ct8_geometry_linear_new (int dimension)
 Create a new linear geometry of a given dimension. More...
 
void t8_geometry_linear_destroy (t8_geometry_c **geom)
 Destroy a linear geometry that was created with t8_geometry_linear_new. More...
 

Detailed Description

This header provides the C interface to create a linear geometry.

Function Documentation

◆ t8_geometry_linear_destroy()

void t8_geometry_linear_destroy ( t8_geometry_c **  geom)

Destroy a linear geometry that was created with t8_geometry_linear_new.

Parameters
[in,out]geomA linear geometry. Set to NULL on output.

◆ t8_geometry_linear_new()

t8_geometry_c* t8_geometry_linear_new ( int  dimension)

Create a new linear geometry of a given dimension.

Parameters
[in]dimension0 <= dimension <= 3. The dimension.
Returns
A pointer to an allocated t8_geometry_linear struct, as if the t8_geometry_linear (int dimension) constructor was called.