1 #ifndef DUNE_FEM_FUNCTION_LOCALFUNCTION_TEMPORARY_HH 2 #define DUNE_FEM_FUNCTION_LOCALFUNCTION_TEMPORARY_HH 4 #include <dune/common/dynvector.hh> 17 template<
class DiscreteFunctionSpace,
class DoFVector >
20 template<
class DiscreteFunctionSpace,
class Dof >
36 template<
class DiscreteFunctionSpace,
class DofVector >
38 :
public LocalFunction < typename DiscreteFunctionSpace :: BasisFunctionSetType, DofVector >
75 : BaseType( dofVector ),
78 localDofVector().reserve( DiscreteFunctionSpaceType::localBlockSize *
dfSpace_.blockMapper().maxNumDofs() );
96 : BaseType( dofVector ),
99 localDofVector().reserve( DiscreteFunctionSpaceType::localBlockSize *
dfSpace_.blockMapper().maxNumDofs() );
115 void init (
const EntityType &entity )
140 template<
class DiscreteFunctionSpace,
class Dof =
typename DiscreteFunctionSpace::RangeFieldType >
169 : BaseType( dfSpace ) {}
185 : BaseType( dfSpace, entity ){}
192 #endif // #ifndef DUNE_FEM_FUNCTION_LOCALFUNCTION_TEMPORARY_HH BaseType::LocalDofVectorType LocalDofVectorType
type of LocalDofVector
Definition: temporary.hh:54
const DiscreteFunctionSpaceType & dfSpace_
Definition: temporary.hh:121
A temporary function carrying values for one entity.
Definition: temporary.hh:21
TemporaryLocalFunction(const DiscreteFunctionSpaceType &dfSpace)
constructor creating a local function without binding it to an entity
Definition: temporary.hh:168
A temporary function carrying values for one entity.
Definition: temporary.hh:18
DiscreteFunctionSpace DiscreteFunctionSpaceType
type of the discrete function space
Definition: temporary.hh:45
BaseType::EntityType EntityType
type of Entity
Definition: temporary.hh:48
interface for local functions
Definition: localfunction.hh:41
void init(const EntityType &entity)
initialize the local function for an entity
Definition: temporary.hh:115
BasisFunctionSetType::EntityType EntityType
type of the entity, the local function lives on is given by the space
Definition: localfunction.hh:59
Definition: coordinate.hh:4
BaseType::BasisFunctionSetType BasisFunctionSetType
type of BasisFunctionSet
Definition: temporary.hh:51
const EntityType & entity() const
obtain the entity, this local function lives on
Definition: localfunction.hh:285
BaseType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
type of the discrete function space
Definition: temporary.hh:152
BaseType::EntityType EntityType
type of Entity
Definition: temporary.hh:149
LocalDofVector LocalDofVectorType
type of local Dof Vector
Definition: localfunction.hh:50
BasicTemporaryLocalFunction(const DiscreteFunctionSpaceType &dfSpace, const EntityType &entity, const LocalDofVectorType &dofVector=LocalDofVectorType())
constructor creating a local function and binding it to an entity
Definition: temporary.hh:94
void init(const BasisFunctionSetType &basisFunctionSet)
Definition: localfunction.hh:288
BasicTemporaryLocalFunction(const DiscreteFunctionSpaceType &dfSpace, const LocalDofVectorType &dofVector=LocalDofVectorType())
constructor creating a local function without binding it to an entity
Definition: temporary.hh:73
TemporaryLocalFunction(const DiscreteFunctionSpaceType &dfSpace, const EntityType &entity)
constructor creating a local function and binding it to an entity
Definition: temporary.hh:184
Definition: basisfunctionset/basisfunctionset.hh:31
const LocalDofVectorType & localDofVector() const
return const reference to local Dof Vector
Definition: localfunction.hh:386