1#ifndef DUNE_FEM_MANAGEDVECTORFUNCTION_HH
2#define DUNE_FEM_MANAGEDVECTORFUNCTION_HH
22 template<
class DofContainer,
class DiscreteFunctionSpace >
26 auto result =
allocateManagedDofStorage( space.gridPart().grid(), space.blockMapper(),
static_cast< DofVector *
>(
nullptr ) );
27 interface_.reset( result.first );
28 return result.second->array();
34 interface_->enableDofCompression();
38 std::unique_ptr< DofStorageInterface > interface_;
64 typedef typename DiscreteFunctionSpaceType :: GridPartType :: GridType
GridType;
75 BaseType :: assign ( other );
81 BaseType :: assign ( other );
static std::pair< DofStorageInterface *, DofStorageType * > allocateManagedDofStorage(const GridType &grid, const MapperType &mapper, const DofStorageType *=0)
default implementation for creating a managed dof storage
Definition: dofmanager.hh:560
Definition: bindguard.hh:11
Definition: defaultblockvectors.hh:346
Definition: common/discretefunction.hh:1066
Definition: managedvectorfunction.hh:21
void enableDofCompression()
Definition: managedvectorfunction.hh:31
DofContainer & allocate(const DiscreteFunctionSpace &space)
Definition: managedvectorfunction.hh:23
ManagedDiscreteFunction(ThisType &&)=default
ManagedDiscreteFunction(const ThisType &other)
Definition: managedvectorfunction.hh:78
void enableDofCompression()
Definition: managedvectorfunction.hh:86
BaseType::DofContainerType DofContainerType
Definition: managedvectorfunction.hh:62
DiscreteFunctionSpaceType::GridPartType::GridType GridType
Definition: managedvectorfunction.hh:64
BaseType::DofVectorType DofVectorType
Definition: managedvectorfunction.hh:61
BaseType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
Definition: managedvectorfunction.hh:60
ManagedDiscreteFunction(const BaseType &other)
Definition: managedvectorfunction.hh:72
ThisType DiscreteFunctionType
Definition: managedvectorfunction.hh:58
ManagedDiscreteFunction(const std::string &name, const DiscreteFunctionSpaceType &dfSpace)
Definition: managedvectorfunction.hh:68
Definition: vectorfunction/vectorfunction.hh:42