Dune::GenericGeometry::DefaultGeometryTraits< ctype, dimG, dimW, alwaysAffine > Class Template Reference
[Generic Geometry Implementations]

#include <geometrytraits.hh>

List of all members.


Detailed Description

template<class ctype, int dimG, int dimW, bool alwaysAffine = false>
class 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 exprected 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.

Public Types

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

Static Public Attributes

static const int dimGrid = dimG
 dimension of the grid
static const int dimWorld = dimW
 dimension of the world
static const bool hybrid = true
 may the grid contain elements of different type?
static const
GeometryType::BasicType 
linetype = GeometryType :: simplex
 what basic geometry type shall the line be considered?

Classes

struct  Caching
 specifies how constant values are to be cached More...
struct  Mapping
 specifies the reference mapping to be used More...

Member Data Documentation

template<class ctype, int dimG, int dimW, bool alwaysAffine = false>
const bool Dune::GenericGeometry::DefaultGeometryTraits< ctype, dimG, dimW, alwaysAffine >::hybrid = true [static]

may the grid contain elements of different type?

If the elements (entities of codimension 0) may differ in topology type, the grid is called hybrid (and this parameter must be set to true). In this case, all methods of the geometry implementation are virtual (but no other branching for topology type is used).

If the grid is non-hybrid, hybrid can be set to false. In this case, virtual methods are not necessary and, hence, the geometries are a little faster.

If hybrid is set to false, an additional paramter dunetype is needed. It specifies the topological type of all elements in the grid. Here's an example:

  static const GeometryType::BasicType dunetype = GeometryType::simplex;


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

Generated on Tue Jul 28 22:28:50 2009 for dune-grid by  doxygen 1.5.6