dune-pdelab
2.0.0
|
An accumulate-only view on a local vector that automatically takes into account an accumulation weight. More...
#include <dune/pdelab/gridfunctionspace/localvector.hh>
Public Types | |
typedef C | Container |
The type of the underlying LocalVector. More... | |
typedef Container::BaseContainer | BaseContainer |
The type of the storage container underlying the LocalVector. More... | |
typedef Container::value_type | value_type |
The value type of the entries. More... | |
typedef Container::weight_type | weight_type |
The type of the weight applied when accumulating contributions. More... | |
typedef WeightedVectorAccumulationView | WeightedAccumulationView |
Export this type for uniform handling of the containers themselves and their views. More... | |
typedef Container::size_type | size_type |
The size_type of the underlying container. More... | |
Public Member Functions | |
WeightedAccumulationView | weightedAccumulationView (weight_type weight) |
Returns a WeighedAccumulationView with some weight in addition to this view's weight. More... | |
weight_type | weight () |
Returns the weight associated with this view. More... | |
void | setWeight (weight_type weight) |
Resets the weighting coefficient of the view. More... | |
template<typename LFS > | |
void | accumulate (const LFS &lfs, size_type n, value_type v) |
Applies the current weight to v and adds the result to the n-th degree of freedom of the lfs. More... | |
template<typename LFS > | |
void | rawAccumulate (const LFS &lfs, size_type n, value_type v) |
Adds v to the n-th degree of freedom of the lfs without applying the current weight. More... | |
WeightedVectorAccumulationView (C &container, weight_type weight) | |
Constructor. More... | |
size_type | size () const |
Returns the size of the underlying container. More... | |
bool | modified () const |
Returns whether this view has been written to. More... | |
void | resetModified () |
Resets the modification state of the view to not modified. More... | |
Container & | container () |
Returns the container (of type LocalVector) that this view is based on. More... | |
const Container & | container () const |
Returns the container (of type LocalVector) that this view is based on (const version). More... | |
BaseContainer & | base () |
Returns the storage container of the underlying LocalVector. More... | |
const BaseContainer & | base () const |
Returns the storage container of the underlying LocalVector (const version). More... | |
An accumulate-only view on a local vector that automatically takes into account an accumulation weight.
typedef Container::BaseContainer Dune::PDELab::WeightedVectorAccumulationView< C >::BaseContainer |
The type of the storage container underlying the LocalVector.
typedef C Dune::PDELab::WeightedVectorAccumulationView< C >::Container |
The type of the underlying LocalVector.
typedef Container::size_type Dune::PDELab::WeightedVectorAccumulationView< C >::size_type |
The size_type of the underlying container.
typedef Container::value_type Dune::PDELab::WeightedVectorAccumulationView< C >::value_type |
The value type of the entries.
typedef Container::weight_type Dune::PDELab::WeightedVectorAccumulationView< C >::weight_type |
The type of the weight applied when accumulating contributions.
typedef WeightedVectorAccumulationView Dune::PDELab::WeightedVectorAccumulationView< C >::WeightedAccumulationView |
Export this type for uniform handling of the containers themselves and their views.
|
inline |
Constructor.
|
inline |
Applies the current weight to v and adds the result to the n-th degree of freedom of the lfs.
|
inline |
Returns the storage container of the underlying LocalVector.
Referenced by Dune::PDELab::accessBaseContainer().
|
inline |
Returns the storage container of the underlying LocalVector (const version).
|
inline |
Returns the container (of type LocalVector) that this view is based on.
Referenced by Dune::PDELab::WeightedVectorAccumulationView< C >::weightedAccumulationView().
|
inline |
Returns the container (of type LocalVector) that this view is based on (const version).
|
inline |
Returns whether this view has been written to.
|
inline |
Adds v to the n-th degree of freedom of the lfs without applying the current weight.
|
inline |
Resets the modification state of the view to not modified.
|
inline |
Resets the weighting coefficient of the view.
References Dune::PDELab::WeightedVectorAccumulationView< C >::weight().
Referenced by Dune::PDELab::DefaultLocalJacobianApplyAssemblerEngine< DefaultLocalAssembler >::assembleUVBoundary(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleUVBoundary(), Dune::PDELab::DefaultLocalJacobianApplyAssemblerEngine< DefaultLocalAssembler >::assembleUVSkeleton(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleUVSkeleton(), Dune::PDELab::DefaultLocalJacobianApplyAssemblerEngine< DefaultLocalAssembler >::assembleUVVolume(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleUVVolume(), Dune::PDELab::DefaultLocalJacobianApplyAssemblerEngine< DefaultLocalAssembler >::assembleUVVolumePostSkeleton(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleUVVolumePostSkeleton(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleVBoundary(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleVSkeleton(), Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleVVolume(), and Dune::PDELab::DefaultLocalResidualAssemblerEngine< DefaultLocalAssembler >::assembleVVolumePostSkeleton().
|
inline |
Returns the size of the underlying container.
|
inline |
Returns the weight associated with this view.
Referenced by Dune::PDELab::WeightedVectorAccumulationView< C >::setWeight(), and Dune::PDELab::WeightedVectorAccumulationView< C >::weightedAccumulationView().
|
inline |
Returns a WeighedAccumulationView with some weight in addition to this view's weight.
References Dune::PDELab::WeightedVectorAccumulationView< C >::container(), and Dune::PDELab::WeightedVectorAccumulationView< C >::weight().