LoadableBlockVector provides a LoadableVector interface to a physically-partitioned block 1x2 vector, making it appear to the fill routine as if the block vector is a single vector. More...
Public Member Functions | |
| LoadableBlockVector (const Vector< double > &vec, int lowestLocalRow, int highestLocalRow, const RCP< Array< int > > &isBCRow) | |
| virtual | ~LoadableBlockVector () |
| virtual dtor | |
| void | setElement (OrdType globalIndex, const double &value) |
| set a single element at the given global index | |
| void | addToElement (OrdType globalIndex, const double &value) |
| add to the existing value of a single element at the given global index | |
| const Vector< double > & | bcBlock () const |
| const Vector< double > & | internalBlock () const |
Private Attributes | |
| int | lowestLocalRow_ |
| int | highestLocalRow_ |
| Vector< double > | bcVec_ |
| Vector< double > | internalVec_ |
| RCP< Array< int > > | isBCRow_ |
LoadableBlockVector provides a LoadableVector interface to a physically-partitioned block 1x2 vector, making it appear to the fill routine as if the block vector is a single vector.
This is intended for filling systems where the internal and BC equations and unknowns are stored in physically separate blocks.
Definition at line 49 of file TSFLoadableBlockVector.hpp.
| TSFExtended::LoadableBlockVector::LoadableBlockVector | ( | const Vector< double > & | vec, |
| int | lowestLocalRow, | ||
| int | highestLocalRow, | ||
| const RCP< Array< int > > & | isBCRow | ||
| ) | [inline] |
Definition at line 53 of file TSFLoadableBlockVector.hpp.
References bcVec_, TSFExtended::Vector< Scalar >::getBlock(), internalVec_, TSFExtended::VectorSpace< Scalar >::numBlocks(), and TSFExtended::Vector< Scalar >::space().
| virtual TSFExtended::LoadableBlockVector::~LoadableBlockVector | ( | ) | [inline, virtual] |
virtual dtor
Definition at line 74 of file TSFLoadableBlockVector.hpp.
| void TSFExtended::LoadableBlockVector::addToElement | ( | OrdType | globalIndex, |
| const double & | value | ||
| ) | [inline, virtual] |
add to the existing value of a single element at the given global index
Implements TSFExtended::LoadableVector< double >.
Definition at line 95 of file TSFLoadableBlockVector.hpp.
References TSFExtended::Vector< Scalar >::addToElement(), bcVec_, highestLocalRow_, internalVec_, isBCRow_, and lowestLocalRow_.
| const Vector<double>& TSFExtended::LoadableBlockVector::bcBlock | ( | ) | const [inline] |
Definition at line 111 of file TSFLoadableBlockVector.hpp.
References bcVec_.
| const Vector<double>& TSFExtended::LoadableBlockVector::internalBlock | ( | ) | const [inline] |
Definition at line 112 of file TSFLoadableBlockVector.hpp.
References internalVec_.
| void TSFExtended::LoadableBlockVector::setElement | ( | OrdType | globalIndex, |
| const double & | value | ||
| ) | [inline, virtual] |
set a single element at the given global index
Implements TSFExtended::LoadableVector< double >.
Definition at line 77 of file TSFLoadableBlockVector.hpp.
References bcVec_, highestLocalRow_, internalVec_, isBCRow_, lowestLocalRow_, and TSFExtended::Vector< Scalar >::setElement().
Vector<double> TSFExtended::LoadableBlockVector::bcVec_ [private] |
Definition at line 117 of file TSFLoadableBlockVector.hpp.
Referenced by addToElement(), bcBlock(), LoadableBlockVector(), and setElement().
int TSFExtended::LoadableBlockVector::highestLocalRow_ [private] |
Definition at line 116 of file TSFLoadableBlockVector.hpp.
Referenced by addToElement(), and setElement().
Vector<double> TSFExtended::LoadableBlockVector::internalVec_ [private] |
Definition at line 118 of file TSFLoadableBlockVector.hpp.
Referenced by addToElement(), internalBlock(), LoadableBlockVector(), and setElement().
RCP<Array<int> > TSFExtended::LoadableBlockVector::isBCRow_ [private] |
Definition at line 119 of file TSFLoadableBlockVector.hpp.
Referenced by addToElement(), and setElement().
int TSFExtended::LoadableBlockVector::lowestLocalRow_ [private] |
Definition at line 115 of file TSFLoadableBlockVector.hpp.
Referenced by addToElement(), and setElement().