t8  1.2.0
t8code is a C library to manage a forest of adaptive space-trees of general element classes in parallel.
Public Member Functions | Protected Attributes
t8_geometry_w_vertices Class Reference
Inheritance diagram for t8_geometry_w_vertices:
t8_geometry t8_geometry_linear

Public Member Functions

 t8_geometry_w_vertices (int dimension, const char *name, const char *attribute_name=NULL)
 
virtual ~ t8_geometry_w_vertices ()
 The destructor. More...
 
virtual void t8_geom_load_tree_data (t8_cmesh_t cmesh, t8_gloidx_t gtreeid)
 Update a possible internal data buffer for per tree data. More...
 
- Public Member Functions inherited from t8_geometry
 t8_geometry (int dimension, const char *name, const char *attribute_name=NULL)
 
virtual ~ t8_geometry ()
 The destructor. More...
 
virtual void t8_geom_evaluate (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, double out_coords[3]) const =0
 Map a point in the reference space $$[0,1]^dimension$$ to $$\mathbb R^3$$. More...
 
virtual void t8_geom_evalute_jacobian (t8_cmesh_t cmesh, t8_gloidx_t gtreeid, const double *ref_coords, double *jacobian) const =0
 Compute the jacobian of the t8_geom_evaluate map at a point in the reference space $$[0,1]^dimension$$. More...
 
int t8_geom_get_dimension () const
 Get the dimension of this geometry. More...
 
const char * t8_geom_get_name () const
 Get the name of this geometry. More...
 

Protected Attributes

t8_gloidx_t active_tree
 
t8_eclass_t active_tree_class
 
const double * active_tree_vertices
 
- Protected Attributes inherited from t8_geometry
int dimension
 The dimension of reference space for which this is a geometry.
 
const char * name
 The name of this geometry.
 

Constructor & Destructor Documentation

◆ ~ t8_geometry_w_vertices()

virtual t8_geometry_w_vertices::~ t8_geometry_w_vertices ( )
inlinevirtual

The destructor.

It does nothing but has to be defined since we may want to delete geometry that is actually inherited and providing an implementation for the destructor ensures that the destructor of the child class will be executed.

Member Function Documentation

◆ t8_geom_load_tree_data()

void t8_geometry_w_vertices::t8_geom_load_tree_data ( t8_cmesh_t  cmesh,
t8_gloidx_t  gtreeid 
)
virtual

Update a possible internal data buffer for per tree data.

This function is called before the first coordinates in a new tree are evaluated. In this implementation we use it to load the tree's vertex coordinates and class to the internal member variables active_tree_class and active_tree_vertices.

Parameters
[in]cmeshThe cmesh.
[in]gtreeidThe global tree.

Implements t8_geometry.


The documentation for this class was generated from the following files: