t8  UNKNOWN
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Functions
t8_cmesh.hxx File Reference

We define the coarse mesh of trees in this file. More...

#include <t8_cmesh.h>
#include <t8_cmesh/t8_cmesh_types.h>
#include <t8_geometry/t8_geometry_handler.hxx>

Go to the source code of this file.

Functions

template<typename geometry_type , typename... _args>
geometry_type * t8_cmesh_register_geometry (t8_cmesh_t cmesh, _args &&...args)
 Create and register a geometry with the coarse mesh. More...
 

Detailed Description

We define the coarse mesh of trees in this file.

Function Documentation

◆ t8_cmesh_register_geometry()

template<typename geometry_type , typename... _args>
geometry_type* t8_cmesh_register_geometry ( t8_cmesh_t  cmesh,
_args &&...  args 
)
inline

Create and register a geometry with the coarse mesh.

The coarse mesh takes the ownership of the geometry.

Template Parameters
geometry_type
Parameters
[in,out]cmeshThe cmesh.
[in,out]argsThe constructor arguments of the geometry.
Returns
A pointer to the geometry.