EpetraExt::BlockVector Class Reference

#include <EpetraExt_BlockVector.h>

Inheritance diagram for EpetraExt::BlockVector:
Inheritance graph
[legend]

List of all members.

Public Member Functions

int ExtractBlockValues (Epetra_Vector &BaseVec, int BlockRow) const
 Extract a single block from a Block Vector: block row is global, not a stencil value.
int LoadBlockValues (const Epetra_Vector &BaseVec, int BlockRow)
 Load a single block into a Block Vector: block row is global, not a stencil value.
int BlockSumIntoGlobalValues (int NumIndices, double *Values, int *Indices, int BlockRow)
 Load entries into BlockVector with base vector indices offset by BlockRow.
int BlockReplaceGlobalValues (int NumIndices, double *Values, int *Indices, int BlockRow)
 Load entries into BlockVector with base vector indices offset by BlockRow.
Teuchos::RCP< const Epetra_VectorGetBlock (int BlockRow) const
 Return Epetra_Vector for given block row.
Teuchos::RCP< Epetra_VectorGetBlock (int BlockRow)
 Return Epetra_Vector for given block row.
const Epetra_BlockMapGetBaseMap () const
 Return base map.

Protected Attributes

Epetra_BlockMap BaseMap_
int Offset_



 BlockVector (const Epetra_BlockMap &BaseMap, const Epetra_BlockMap &GlobalMap)
 BlockVector constuctor with one block row per processor.
 BlockVector (Epetra_DataAccess CV, const Epetra_BlockMap &BaseMap, const Epetra_Vector &BlockVec)
 BlockVector (const BlockVector &MV)
 Copy constructor.
virtual ~BlockVector ()
 Destructor.

Detailed Description

Definition at line 48 of file EpetraExt_BlockVector.h.


Constructor & Destructor Documentation

EpetraExt::BlockVector::BlockVector ( const Epetra_BlockMap BaseMap,
const Epetra_BlockMap GlobalMap 
)

BlockVector constuctor with one block row per processor.

Creates a BlockVector object and allocates storage.

Parameters:
In BaseMap - Map determining local structure, can be distrib. over subset of proc.'s
In GlobalMap - Full map describing the overall global structure, generally generated by the construction of a BlockCrsMatrix object
In NumBlocks - Number of local blocks

Definition at line 34 of file EpetraExt_BlockVector.cpp.

EpetraExt::BlockVector::BlockVector ( Epetra_DataAccess  CV,
const Epetra_BlockMap BaseMap,
const Epetra_Vector BlockVec 
)

Creates a BlockVector object from an existing Epetra_Vector.

Parameters:
In Epetra_DataAccess - Enumerated type set to Copy or View.
In BaseMap - Map determining local structure, can be distrib. over subset of proc.'s
In BlockVec - Source Epetra vector whose map must be the full map for the block vector

Definition at line 45 of file EpetraExt_BlockVector.cpp.

EpetraExt::BlockVector::BlockVector ( const BlockVector MV  ) 

Copy constructor.

Definition at line 57 of file EpetraExt_BlockVector.cpp.

EpetraExt::BlockVector::~BlockVector (  )  [virtual]

Destructor.

Definition at line 65 of file EpetraExt_BlockVector.cpp.


Member Function Documentation

int EpetraExt::BlockVector::ExtractBlockValues ( Epetra_Vector BaseVec,
int  BlockRow 
) const

Extract a single block from a Block Vector: block row is global, not a stencil value.

Definition at line 70 of file EpetraExt_BlockVector.cpp.

int EpetraExt::BlockVector::LoadBlockValues ( const Epetra_Vector BaseVec,
int  BlockRow 
)

Load a single block into a Block Vector: block row is global, not a stencil value.

Definition at line 91 of file EpetraExt_BlockVector.cpp.

int EpetraExt::BlockVector::BlockSumIntoGlobalValues ( int  NumIndices,
double *  Values,
int *  Indices,
int  BlockRow 
)

Load entries into BlockVector with base vector indices offset by BlockRow.

Definition at line 111 of file EpetraExt_BlockVector.cpp.

int EpetraExt::BlockVector::BlockReplaceGlobalValues ( int  NumIndices,
double *  Values,
int *  Indices,
int  BlockRow 
)

Load entries into BlockVector with base vector indices offset by BlockRow.

Definition at line 132 of file EpetraExt_BlockVector.cpp.

Teuchos::RCP< const Epetra_Vector > EpetraExt::BlockVector::GetBlock ( int  BlockRow  )  const

Return Epetra_Vector for given block row.

Definition at line 155 of file EpetraExt_BlockVector.cpp.

Teuchos::RCP< Epetra_Vector > EpetraExt::BlockVector::GetBlock ( int  BlockRow  ) 

Return Epetra_Vector for given block row.

Definition at line 163 of file EpetraExt_BlockVector.cpp.

const Epetra_BlockMap & EpetraExt::BlockVector::GetBaseMap (  )  const

Return base map.

Definition at line 171 of file EpetraExt_BlockVector.cpp.


Member Data Documentation

Definition at line 107 of file EpetraExt_BlockVector.h.

Definition at line 109 of file EpetraExt_BlockVector.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 09:57:55 2011 for EpetraExt by  doxygen 1.6.3