Public Member Functions | Private Attributes
TSFExtended::LoadableBlockVector Class Reference

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...

Inheritance diagram for TSFExtended::LoadableBlockVector:
TSFExtended::LoadableVector< double >

List of all members.

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_

Detailed Description

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.

Author:
Kevin Long (krlong@sandia.gov)

Definition at line 49 of file TSFLoadableBlockVector.hpp.


Constructor & Destructor Documentation

TSFExtended::LoadableBlockVector::LoadableBlockVector ( const Vector< double > &  vec,
int  lowestLocalRow,
int  highestLocalRow,
const RCP< Array< int > > &  isBCRow 
) [inline]
virtual TSFExtended::LoadableBlockVector::~LoadableBlockVector ( ) [inline, virtual]

virtual dtor

Definition at line 74 of file TSFLoadableBlockVector.hpp.


Member Function Documentation

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().


Member Data Documentation

Definition at line 117 of file TSFLoadableBlockVector.hpp.

Referenced by addToElement(), bcBlock(), LoadableBlockVector(), and setElement().

Definition at line 116 of file TSFLoadableBlockVector.hpp.

Referenced by addToElement(), and setElement().

RCP<Array<int> > TSFExtended::LoadableBlockVector::isBCRow_ [private]

Definition at line 119 of file TSFLoadableBlockVector.hpp.

Referenced by addToElement(), and setElement().

Definition at line 115 of file TSFLoadableBlockVector.hpp.

Referenced by addToElement(), and setElement().

Site Contact