LifeV
|
VectorEpetraStructuredView - class representing a block in a VectorEpetraStructuredView. More...
#include <VectorEpetraStructuredView.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 | |
VectorEpetraStructuredView () | |
Default constructor. More... | |
VectorEpetraStructuredView (const VectorEpetraStructuredView &otherView) | |
Copy constructor. More... | |
~VectorEpetraStructuredView () | |
Default destructor. More... | |
Methods | |
void | showMe (std::ostream &output=std::cout) const |
Print the informations about the VectorEpetraStructuredView. 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 | |
VectorEpetraStructuredView | operator= (const VectorEpetraStructuredView &otherView) |
No assignement operator. More... | |
VectorEpetraStructuredView - class representing a block in a VectorEpetraStructuredView.
The VectorEpetraStructuredView 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 54 of file VectorEpetraStructuredView.hpp.
typedef VectorEpetra vector_Type |
Typedef for the underlying vector type.
Definition at line 62 of file VectorEpetraStructuredView.hpp.
Default constructor.
Definition at line 45 of file VectorEpetraStructuredView.cpp.
VectorEpetraStructuredView | ( | const VectorEpetraStructuredView & | 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 53 of file VectorEpetraStructuredView.cpp.
Default destructor.
Definition at line 61 of file VectorEpetraStructuredView.cpp.
void showMe | ( | std::ostream & | output = std::cout | ) | const |
Print the informations about the VectorEpetraStructuredView.
output | Stream where to print the informations |
Definition at line 70 of file VectorEpetraStructuredView.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 80 of file VectorEpetraStructuredView.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 96 of file VectorEpetraStructuredView.cpp.
|
inline |
Returns the size of the block.
Definition at line 128 of file VectorEpetraStructuredView.hpp.
|
inline |
Returns the index in the block.
Definition at line 134 of file VectorEpetraStructuredView.hpp.
|
inline |
Returns the last index in the block.
Definition at line 140 of file VectorEpetraStructuredView.hpp.
|
inline |
Return the shared_pointer of the Epetra_FEVector.
Definition at line 146 of file VectorEpetraStructuredView.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 169 of file VectorEpetraStructuredView.hpp.
|
private |
Definition at line 170 of file VectorEpetraStructuredView.hpp.
|
private |
Definition at line 171 of file VectorEpetraStructuredView.hpp.
|
private |
Definition at line 172 of file VectorEpetraStructuredView.hpp.