DUNE-FEM (unstable)
combinedfunction.hh
144 : BaseType( "combined_"+func.name(), createSpace( func.space().gridPart() ), LocalDofVectorAllocatorType( &ldvStack_ ) ),
145 ldvStack_( std::max( sizeof( DofType ), sizeof( DofType* ) ) * space().blockMapper().maxNumDofs() * DiscreteFunctionSpaceType::localBlockSize )
153 : BaseType( "combined_"+name, createSpace( spc.gridPart() ), LocalDofVectorAllocatorType( &ldvStack_ ) ),
154 ldvStack_( std::max( sizeof( DofType ), sizeof( DofType* ) ) * space().blockMapper().maxNumDofs() * DiscreteFunctionSpaceType::localBlockSize )
162 : BaseType( "combined_"+name, createSpace( spc.gridPart() ), LocalDofVectorAllocatorType( &ldvStack_) ),
163 ldvStack_( std::max( sizeof( DofType ), sizeof( DofType* ) ) * space().blockMapper().maxNumDofs() * DiscreteFunctionSpaceType::localBlockSize )
174 : BaseType( other.name()+"_copy", createSpace( other.space().gridPart() ), LocalDofVectorAllocatorType( &ldvStack_ ) ),
400 typedef DiscreteFunctionTraits<CombinedDiscreteFunction< ContainedDiscreteFunctionImp,N> > Traits;
404 typedef typename ContainedDiscreteFunctionType::ConstDofIteratorType ContainedConstDofIteratorType;
Iterator over an array of dofs.
Definition: combinedfunction.hh:397
bool operator!=(const ThisType &I) const
compare
Definition: combinedfunction.hh:485
CombinedDiscreteFunctionDofIterator(DiscreteFunctionType &df)
Constructor.
Definition: combinedfunction.hh:429
ThisType & operator++()
go to next dof
Definition: combinedfunction.hh:466
CombinedDiscreteFunctionDofIterator(bool end, const DiscreteFunctionType &df)
End constructor.
Definition: combinedfunction.hh:408
CombinedDiscreteFunctionDofIterator(const DiscreteFunctionType &df)
Constructor (const)
Definition: combinedfunction.hh:415
DofType & operator*()
return dof
Definition: combinedfunction.hh:454
CombinedDiscreteFunctionDofIterator(const ThisType &other)
Copy Constructor.
Definition: combinedfunction.hh:436
bool operator==(const ThisType &I) const
compare
Definition: combinedfunction.hh:479
CombinedDiscreteFunctionDofIterator(bool end, DiscreteFunctionType &df)
End constructor.
Definition: combinedfunction.hh:422
ThisType & operator=(const ThisType &other)
Assignment operator.
Definition: combinedfunction.hh:444
Definition: combinedfunction.hh:83
CombinedDiscreteFunction(const ThisType &other)
Definition: combinedfunction.hh:173
RangeFieldType scalarProductDofs(const ThisType &other) const
Definition: combinedfunction.hh:264
BaseType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
the combined discrete function type
Definition: combinedfunction.hh:108
DofIteratorType dend()
obtain an iterator pointing behind the last DoF (read-write)
Definition: combinedfunction.hh:352
DofIteratorType dbegin()
obtain an iterator pointing to the first DoF (read-write)
Definition: combinedfunction.hh:347
ThisType & operator+=(const ThisType &g)
Definition: combinedfunction.hh:215
void clear()
set all degrees of freedom to zero
Definition: combinedfunction.hh:195
void assign(const ThisType &g)
Definition: combinedfunction.hh:202
ConstDofIteratorType dbegin() const
obtain an iterator pointing to the first DoF (read-only)
Definition: combinedfunction.hh:337
int size() const
obtain total number of DoFs
Definition: combinedfunction.hh:209
BaseType::GridPartType GridPartType
GridPart implementation.
Definition: combinedfunction.hh:100
void axpy(const RangeFieldType &s, const ThisType &g)
axpy operation
Definition: combinedfunction.hh:257
BaseType::RangeType RangeType
Vector type used for the range field.
Definition: combinedfunction.hh:121
void read(InStreamInterface< StreamTraits > &in)
read the discrete function from a stream
Definition: combinedfunction.hh:274
Traits::MapperType MapperType
Mapper type (from the space)
Definition: combinedfunction.hh:125
bool dofsValid() const
check for NaNs
Definition: combinedfunction.hh:295
BaseType::ConstDofIteratorType ConstDofIteratorType
Read-only iterator over dof container.
Definition: combinedfunction.hh:131
void write(OutStreamInterface< StreamTraits > &out) const
write the discrete function into a stream
Definition: combinedfunction.hh:281
BaseType::RangeFieldType RangeFieldType
Intrinsic type used for range field (like DofType)
Definition: combinedfunction.hh:117
BaseType::DofIteratorType DofIteratorType
Iterator over dof container.
Definition: combinedfunction.hh:128
void addScaled(const ThisType &g, const RangeFieldType &s)
Definition: combinedfunction.hh:250
BaseType::DomainType DomainType
Vector type used for the domain field.
Definition: combinedfunction.hh:123
BaseType::GridType GridType
Grid implementation.
Definition: combinedfunction.hh:97
ConstDofIteratorType dend() const
obtain an iterator pointing behind the last DoF (read-only)
Definition: combinedfunction.hh:342
BaseType::DofType DofType
Intrinsic type used for dofs (typically a float type)
Definition: combinedfunction.hh:115
BaseType::DiscreteFunctionType DiscreteFunctionType
Definition: combinedfunction.hh:105
DiscreteFunctionTraits< ThisType > Traits
Traits class with all necessary type definitions.
Definition: combinedfunction.hh:94
Traits::ContainedDiscreteFunctionSpaceType ContainedDiscreteFunctionSpaceType
Contained discrete function space.
Definition: combinedfunction.hh:111
ContainedDiscreteFunctionImp ContainedDiscreteFunctionType
Discrete function this discrete function belongs to.
Definition: combinedfunction.hh:90
~CombinedDiscreteFunction()
Destructor.
Definition: combinedfunction.hh:182
BaseType::DomainFieldType DomainFieldType
Intrinsic type used for the domain field.
Definition: combinedfunction.hh:119
CombinedDiscreteFunction(const ContainedDiscreteFunctionType &func)
Constructor.
Definition: combinedfunction.hh:143
void print(std ::ostream &out) const
Definition: combinedfunction.hh:288
DiscreteFunctionType & operator/=(const RangeFieldType &scalar)
multiply all DoFs by a scalar factor
Definition: combinedfunction.hh:241
DiscreteFunctionType & operator*=(const RangeFieldType &scalar)
multiply all DoFs by a scalar factor
Definition: combinedfunction.hh:233
Definition: discretefunction.hh:584
const DiscreteFunctionSpaceType & space() const
obtain a reference to the corresponding DiscreteFunctionSpace
Definition: discretefunction.hh:709
BaseType::GridPartType GridPartType
type of the underlying grid part
Definition: discretefunction.hh:609
Traits::LocalDofVectorAllocatorType LocalDofVectorAllocatorType
type of LocalDofVector
Definition: discretefunction.hh:636
Traits::ConstDofIteratorType ConstDofIteratorType
type of the const dof iterator
Definition: discretefunction.hh:628
const std::string & name() const
obtain the name of the discrete function
Definition: discretefunction.hh:691
DiscreteFunctionSpaceType::RangeType RangeType
type of range vector
Definition: discretefunction.hh:614
Traits::DofIteratorType DofIteratorType
type of the dof iterator
Definition: discretefunction.hh:626
const GridPartType & gridPart() const
obtain a reference to the underlying grid part
Definition: discretefunction.hh:712
BaseType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
type of discrete function space
Definition: discretefunction.hh:606
DiscreteFunctionSpaceType::DomainType DomainType
type of domain vector
Definition: discretefunction.hh:612
DiscreteFunctionSpaceType::RangeFieldType RangeFieldType
type of range field (usually a float type)
Definition: discretefunction.hh:623
DiscreteFunctionSpaceType::DomainFieldType DomainFieldType
type of domain field (usually a float type)
Definition: discretefunction.hh:621
DiscreteFunctionSpaceType::GridType GridType
type of the underlying grid
Definition: discretefunction.hh:122
default implementation of DofManagerInterface
Definition: dofiterator.hh:143
An implementation of DenseVector which uses a std::vector of references as storage.
Definition: referencevector.hh:53
constexpr auto max
Function object that returns the greater of the given values.
Definition: hybridutilities.hh:484
STL namespace.
Traits class for a DiscreteFunction.
Definition: discretefunction.hh:61
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 21, 23:30, 2024)