1 #ifndef DUNE_FEM_BLOCKVECTORDISCRETEFUNCTION_HH
2 #define DUNE_FEM_BLOCKVECTORDISCRETEFUNCTION_HH
21 template<
typename DiscreteFunctionSpace,
typename BlockVector >
22 class BlockVectorDiscreteFunction;
46 template<
typename DiscreteFunctionSpace,
typename BlockVector >
63 template<
typename DiscreteFunctionSpace,
typename BlockVector >
150 std::string
name(
"deprecated");
151 std::pair< DofStorageInterface*, DofVectorType* > memPair(
152 allocateManagedDofStorage< DofVectorType >(
space.gridPart().grid(),
space.blockMapper(),
name ) );
155 return *memPair.second;
Definition: bindguard.hh:11
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:67
std::unique_ptr< DofStorageInterface > memObject_
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:158
BlockVectorDiscreteFunction(ThisType &&other)
Move constructor.
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:118
BlockVectorDiscreteFunction()=delete
DofVectorType & allocateDofStorage(const DiscreteFunctionSpaceType &space)
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:148
BlockVector BlockVectorType
type for the class which implements the block vector
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:76
DiscreteFunctionSpace DiscreteFunctionSpaceType
type for the discrete function space this function lives in
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:74
BlockVectorType DofVectorType
type for the class which implements the block vector (which is the dof vector)
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:78
DofVectorType & dofVector_
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:159
BlockVectorDiscreteFunction(const std::string &name, const DiscreteFunctionSpaceType &space, DofVectorType &dofVector)
Constructor to use if the vector storing the dofs (which is a block vector) already exists.
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:88
BlockVectorDiscreteFunction(const std::string &name, const DiscreteFunctionSpaceType &space)
Constructor to use if the vector storing the dofs does not exist yet.
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:101
void enableDofCompression()
Enable this discrete function for dof compression, i.e. during grid changes a dof compression is done...
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:141
const DofVectorType & dofVector() const
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:129
ThisType & operator=(const ThisType &)=delete
DofVectorType & dofVector()
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:135
BlockVectorDiscreteFunction(const ThisType &other)
Copy constructor.
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:109
void assign(const DiscreteFunctionType &g)
Definition: common/discretefunction.hh:764
Tag for discrete functions using block vectors.
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:36
MutableLocalFunction< DiscreteFunctionType > LocalFunctionType
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:51
BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > DiscreteFunctionType
Definition: function/blockvectordiscretefunction/blockvectordiscretefunction.hh:50
Traits class for a DiscreteFunction.
Definition: common/discretefunction.hh:60
Definition: common/discretefunction.hh:539
const std::string & name() const
obtain the name of the discrete function
Definition: common/discretefunction.hh:644
void assign(const DiscreteFunctionInterface< DFType > &g)
Definition: discretefunction_inline.hh:128
const DiscreteFunctionSpaceType & space() const
obtain a reference to the corresponding DiscreteFunctionSpace
Definition: common/discretefunction.hh:662
Definition: common/discretefunction.hh:1013
Definition: common/scalarproducts.hh:73
Definition: mutable.hh:31