5#ifndef DUNE_DGLOCALCOEFFICIENTS_HH
6#define DUNE_DGLOCALCOEFFICIENTS_HH
11#include <dune/localfunctions/common/localkey.hh>
31 for(
unsigned i = 0; i < n; ++i )
32 localKey_[ i ] =
LocalKey( 0, 0, i );
35 const LocalKey &localKey (
const unsigned int i )
const
38 return localKey_[ i ];
41 unsigned int size ()
const
43 return localKey_.size();
47 std::vector< LocalKey > localKey_;
57 template<
class BasisFactory >
60 static const unsigned int dimension = BasisFactory::dimension;
61 typedef typename BasisFactory::Key Key;
64 template< GeometryType::Id geometryId >
65 static Object *create (
const Key &key )
67 const typename BasisFactory::Object *basis
68 = BasisFactory::template create< geometryId >( key );
70 BasisFactory::release( basis );
73 static void release(
Object *
object ) {
delete object; }
A class providing local coefficients for dg spaces.
Definition: dglocalcoefficients.hh:23
DGLocalCoefficients(const unsigned int n)
construct local keys for n basis functions
Definition: dglocalcoefficients.hh:28
Describe position of one degree of freedom.
Definition: localkey.hh:23
Dune namespace.
Definition: alignedallocator.hh:13
A factory class for the dg local coefficients.
Definition: dglocalcoefficients.hh:59