Dune Core Modules (2.3.1)

Dune::GenericGeometry::DefaultGeometryTraits< ctype, dimG, dimW, alwaysAffine > Struct Template Reference

default settings for BasicGeometry More...

#include <dune/geometry/genericgeometry/geometrytraits.hh>

Classes

struct  Caching
 specifies how constant values are to be cached More...
 
struct  hasSingleGeometryType
 will there be only one geometry type for a dimension? More...
 
struct  Mapping
 specifies the reference mapping to be used More...
 
struct  UserData
 type of additional user data to be stored in each mapping More...
 

Public Types

typedef DuneCoordTraits< ctype > CoordTraits
 types needed in matrix-vector operations
 

Static Public Attributes

static const int dimWorld = dimW
 dimension of the world
 

Detailed Description

template<class ctype, int dimG, int dimW, bool alwaysAffine = false>
struct Dune::GenericGeometry::DefaultGeometryTraits< ctype, dimG, dimW, alwaysAffine >

default settings for BasicGeometry

The class BasicGeometry requires a template argument Traits. These traits specify which reference mapping shall be used by the geometry and tweaks some performance settings.

This default implementation serves two purposed. Firstly, it documents the expected parameters. Secondly, the user of BasicGeometry can derive his traits class from DefaultGeometryTraits. Then, only the non-default settings have to be specified. Moreover, deriving from DefaultGeometryTraits makes the user code more robust to changes in the generic geometries.

Note
DefaultGeometryTraits can directly be used for the Traits argument of BasicGeometry.
Template Parameters
ctypeType used for coordinate coefficients
dimGDimension of the grid (note: This template parameter exists for backward-compatibility only. It is not used anywhere.)
dimWDimension of the range space of this geometry
alwaysAffineSet to true if geometry is always affine (enables a few optimizations)

The documentation for this struct was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)