3#ifndef DUNE_DGLOCALCOEFFICIENTS_HH
4#define DUNE_DGLOCALCOEFFICIENTS_HH
9#include <dune/localfunctions/common/localkey.hh>
29 for(
unsigned i = 0; i < n; ++i )
30 localKey_[ i ] =
LocalKey( 0, 0, i );
33 const LocalKey &localKey (
const unsigned int i )
const
36 return localKey_[ i ];
39 unsigned int size ()
const
41 return localKey_.size();
45 std::vector< LocalKey > localKey_;
55 template<
class BasisFactory >
58 static const unsigned int dimension = BasisFactory::dimension;
59 typedef typename BasisFactory::Key Key;
62 template< GeometryType::Id geometryId >
63 static Object *create (
const Key &key )
65 const typename BasisFactory::Object *basis
66 = BasisFactory::template create< geometryId >( key );
68 BasisFactory::release( basis );
71 static void release(
Object *
object ) {
delete object; }
A class providing local coefficients for dg spaces.
Definition: dglocalcoefficients.hh:21
DGLocalCoefficients(const unsigned int n)
construct local keys for n basis functions
Definition: dglocalcoefficients.hh:26
Describe position of one degree of freedom.
Definition: localkey.hh:21
Dune namespace.
Definition: alignedallocator.hh:11
A factory class for the dg local coefficients.
Definition: dglocalcoefficients.hh:57