dune-geometry
2.3.1
|
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 |
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.
ctype | Type used for coordinate coefficients |
dimG | Dimension of the grid (note: This template parameter exists for backward-compatibility only. It is not used anywhere.) |
dimW | Dimension of the range space of this geometry |
alwaysAffine | Set to true if geometry is always affine (enables a few optimizations) |
typedef DuneCoordTraits< ctype > Dune::GenericGeometry::DefaultGeometryTraits< ctype, dimG, dimW, alwaysAffine >::CoordTraits |
types needed in matrix-vector operations
|
static |
dimension of the world