LifeV
|
VectorBlockMonolithicEpetraView - class representing a block in a VectorBlockMonolithicEpetra. More...
#include <VectorBlockMonolithicEpetraView.hpp>
Private Attributes | |
UInt | M_blockSize |
UInt | M_firstIndex |
UInt | M_lastValidIndex |
vector_Type * | M_vector |
Public Types | |
typedef VectorEpetra | vector_Type |
Typedef for the underlying vector type. More... | |
Constructor & Destructor | |
VectorBlockMonolithicEpetraView () | |
Default constructor. More... | |
VectorBlockMonolithicEpetraView (const VectorBlockMonolithicEpetraView &otherView) | |
Copy constructor. More... | |
~VectorBlockMonolithicEpetraView () | |
Default destructor. More... | |
Methods | |
void | showMe (std::ostream &output=std::cout) const |
Print the informations about the VectorBlockMonolithicEpetraView. More... | |
Int | sumIntoGlobalValues (const Int GID, const Real value) const |
Assembly procedure. More... | |
Set Methods | |
void | setup (const UInt &firstIndex, const UInt &blockSize, vector_Type *vector) |
Get Methods | |
UInt | blockSize () const |
Returns the size of the block. More... | |
UInt | firstIndex () const |
Returns the index in the block. More... | |
UInt | lastValidIndex () const |
Returns the last index in the block. More... | |
vector_Type * | vectorPtr () const |
Return the shared_pointer of the Epetra_FEVector. More... | |
Private Methods | |
VectorBlockMonolithicEpetraView | operator= (const VectorBlockMonolithicEpetraView &otherView) |
No assignement operator. More... | |
VectorBlockMonolithicEpetraView - class representing a block in a VectorBlockMonolithicEpetra.
The VectorBlockMonolithicEpetraView class contains data related to block of a vector. It is useful to setup a clean and easy-to-use blocks management.
For more information about the block structures in LifeV, see this page.
Definition at line 58 of file VectorBlockMonolithicEpetraView.hpp.
typedef VectorEpetra vector_Type |
Typedef for the underlying vector type.
Definition at line 66 of file VectorBlockMonolithicEpetraView.hpp.
Default constructor.
Definition at line 47 of file VectorBlockMonolithicEpetraView.cpp.
VectorBlockMonolithicEpetraView | ( | const VectorBlockMonolithicEpetraView & | otherView | ) |
Copy constructor.
Beware that using the copy constructor, the view is copied but not the underlying vector (both views still look at the same vector, not at different copies).
Definition at line 55 of file VectorBlockMonolithicEpetraView.cpp.
Default destructor.
Definition at line 63 of file VectorBlockMonolithicEpetraView.cpp.
void showMe | ( | std::ostream & | output = std::cout | ) | const |
Print the informations about the VectorBlockMonolithicEpetraView.
output | Stream where to print the informations |
Definition at line 72 of file VectorBlockMonolithicEpetraView.cpp.
Assembly procedure.
This procedure should always have the same behaviour and the same syntax than the corresponding method in MatrixEpetra.
GID | the global index of the element within the block viewed. |
value | the value to be added |
Definition at line 82 of file VectorBlockMonolithicEpetraView.cpp.
void setup | ( | const UInt & | firstIndex, |
const UInt & | blockSize, | ||
vector_Type * | vector | ||
) |
Set all the informations relative to the block
firstIndex | First index in the block |
blockSize | Number of indices in the block |
vector | Vector from which the view has to be extracted |
Definition at line 98 of file VectorBlockMonolithicEpetraView.cpp.
|
inline |
Returns the size of the block.
Definition at line 132 of file VectorBlockMonolithicEpetraView.hpp.
|
inline |
Returns the index in the block.
Definition at line 138 of file VectorBlockMonolithicEpetraView.hpp.
|
inline |
Returns the last index in the block.
Definition at line 144 of file VectorBlockMonolithicEpetraView.hpp.
|
inline |
Return the shared_pointer of the Epetra_FEVector.
Definition at line 150 of file VectorBlockMonolithicEpetraView.hpp.
|
private |
No assignement operator.
The assignement operator is disabled in order to avoid confusing notation like vector.block(0) = vector.block(1), that would only copy the views and not the blocks.
|
private |
Definition at line 173 of file VectorBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 174 of file VectorBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 175 of file VectorBlockMonolithicEpetraView.hpp.
|
private |
Definition at line 176 of file VectorBlockMonolithicEpetraView.hpp.