1 #ifndef DUNE_FEM_MANAGEDVECTORFUNCTION_HH 2 #define DUNE_FEM_MANAGEDVECTORFUNCTION_HH 32 typedef typename DiscreteFunctionSpaceType :: GridPartType :: GridType
40 : BaseType( name, dfSpace, allocDofContainer( name, dfSpace ) )
44 : BaseType( other.name(), other.space(),
45 allocDofContainer( other.name(), other.space() ) )
47 BaseType :: assign ( other );
51 : BaseType( other.name(), other.space(),
52 allocDofContainer( other.name(), other.space() ) )
54 BaseType :: assign ( other );
67 memObject_->enableDofCompression();
71 inline DofContainerType &
76 DiscreteFunctionSpaceType::localBlockSize > MutableDofVectorType;
79 std::pair< DofStorageInterface *, MutableDofVectorType* > memPair
81 memObject_ = memPair.first;
82 return memPair.second->array();
93 #endif // #ifndef DUNE_FEM_MANAGEDVECTORFUNCTION_HH
void enableDofCompression()
Definition: managedvectorfunction.hh:64
DofStorageInterface * memObject_
Definition: managedvectorfunction.hh:86
Definition: vectorfunction/vectorfunction.hh:25
BaseType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
Definition: vectorfunction/vectorfunction.hh:53
ManagedDiscreteFunction(const ThisType &other)
Definition: managedvectorfunction.hh:50
DofVectorType::DofContainerType DofContainerType
Definition: vectorfunction/vectorfunction.hh:55
BaseType::DofVectorType DofVectorType
Definition: vectorfunction/vectorfunction.hh:54
ThisType DiscreteFunctionType
Definition: managedvectorfunction.hh:24
static std::pair< DofStorageInterface *, DofStorageType * > allocateManagedDofStorage(const GridType &grid, const MapperType &mapper, const std::string &name, const DofStorageType *=0)
default implementation for creating a managed dof storage
Definition: dofmanager.hh:610
ManagedDiscreteFunction(const std::string &name, const DiscreteFunctionSpaceType &dfSpace)
Definition: managedvectorfunction.hh:38
DiscreteFunctionSpaceType::BlockMapperType BlockMapperType
Definition: managedvectorfunction.hh:35
BaseType::DofContainerType DofContainerType
Definition: managedvectorfunction.hh:29
Definition: defaultblockvectors.hh:455
BaseType::DofVectorType DofVectorType
Definition: managedvectorfunction.hh:28
Definition: coordinate.hh:4
Interface class for a dof storage object to be stored in discrete functions.
Definition: dofmanager.hh:282
DiscreteFunctionSpaceType::GridPartType::GridType GridType
Definition: managedvectorfunction.hh:33
~ManagedDiscreteFunction()
Definition: managedvectorfunction.hh:57
ManagedDiscreteFunction(const BaseType &other)
Definition: managedvectorfunction.hh:43
DofContainerType & allocDofContainer(const std::string &name, const DiscreteFunctionSpaceType &space)
Definition: managedvectorfunction.hh:72
Definition: discretefunction.hh:1025
BaseType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
Definition: managedvectorfunction.hh:27