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

This geometry implements curved geometries obtained by Lagrange interpolation. More...

#include <array>
#include <string>
#include <vector>
#include <t8.h>
#include <t8_cmesh/t8_cmesh_types.h>
#include <t8_forest/t8_forest_general.h>
#include <t8_geometry/t8_geometry_with_vertices.hxx>
#include <t8_geometry/t8_geometry_with_vertices.h>

Go to the source code of this file.

Data Structures

struct  t8_geometry_lagrange
 Mapping with Lagrange basis functions. More...
 
class  t8_lagrange_element
 A single coarse mesh cell with Lagrange geometry. More...
 

Macros

#define T8_GEOMETRY_MAX_POLYNOMIAL_DEGREE   2
 

Functions

template<typename T >
std::vector< T > flatten (const std::vector< std::vector< T >> &vec)
 Flatten a vector of vector into a single vector. More...
 

Detailed Description

This geometry implements curved geometries obtained by Lagrange interpolation.

The interpolation is carried out with the classical finite element basis functions. Therefore, it is the generalization of the linear geometry (t8_geometry_linear).

Function Documentation

◆ flatten()

template<typename T >
std::vector<T> flatten ( const std::vector< std::vector< T >> &  vec)

Flatten a vector of vector into a single vector.

Template Parameters
TTemplate parameter of a vector.
Parameters
vecNested vector to be flattened.
Returns
Flattened vector.