EpetraExt Development
Public Member Functions | Protected Attributes
EpetraExt::BlockMultiVector Class Reference

#include <EpetraExt_BlockMultiVector.h>

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

List of all members.

Public Member Functions

int ExtractBlockValues (Epetra_MultiVector &BaseVec, int BlockRow) const
 Extract a single block from a Block Vector: block row is global, not a stencil value.
int LoadBlockValues (const Epetra_MultiVector &BaseVec, int BlockRow)
 Load a single block into a Block Vector: block row is global, not a stencil value.
Teuchos::RCP< const
Epetra_MultiVector
GetBlock (int BlockRow) const
 Return Epetra_MultiVector for given block row.
Teuchos::RCP< Epetra_MultiVectorGetBlock (int BlockRow)
 Return Epetra_MultiVector for given block row.
const Epetra_BlockMapGetBaseMap () const
 Return base map.

Protected Attributes

Epetra_BlockMap BaseMap_
int Offset_
 BlockMultiVector (const Epetra_BlockMap &BaseMap, const Epetra_BlockMap &GlobalMap, int NumVectors)
 BlockMultiVector constuctor with one block row per processor.
 BlockMultiVector (Epetra_DataAccess CV, const Epetra_BlockMap &BaseMap, const Epetra_MultiVector &BlockVec)
 BlockMultiVector (const BlockMultiVector &MV)
 Copy constructor.
virtual ~BlockMultiVector ()
 Destructor.

Detailed Description

Definition at line 59 of file EpetraExt_BlockMultiVector.h.


Constructor & Destructor Documentation

EpetraExt::BlockMultiVector::BlockMultiVector ( const Epetra_BlockMap BaseMap,
const Epetra_BlockMap GlobalMap,
int  NumVectors 
)

BlockMultiVector constuctor with one block row per processor.

Creates a BlockMultiVector object and allocates storage.

Parameters:
InBaseMap - Map determining local structure, can be distrib. over subset of proc.'s
InGlobalMap - Full map describing the overall global structure, generally generated by the construction of a BlockCrsMatrix object
InNumVectors - Number of vectors in object

Definition at line 52 of file EpetraExt_BlockMultiVector.cpp.

EpetraExt::BlockMultiVector::BlockMultiVector ( Epetra_DataAccess  CV,
const Epetra_BlockMap BaseMap,
const Epetra_MultiVector BlockVec 
)

Creates a BlockMultiVector object from an existing Epetra_MultiVector.

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

Definition at line 64 of file EpetraExt_BlockMultiVector.cpp.

EpetraExt::BlockMultiVector::BlockMultiVector ( const BlockMultiVector MV)

Copy constructor.

Definition at line 76 of file EpetraExt_BlockMultiVector.cpp.

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

Destructor.

Definition at line 84 of file EpetraExt_BlockMultiVector.cpp.


Member Function Documentation

int EpetraExt::BlockMultiVector::ExtractBlockValues ( Epetra_MultiVector BaseVec,
int  BlockRow 
) const

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

Definition at line 89 of file EpetraExt_BlockMultiVector.cpp.

int EpetraExt::BlockMultiVector::LoadBlockValues ( const Epetra_MultiVector BaseVec,
int  BlockRow 
)

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

Definition at line 111 of file EpetraExt_BlockMultiVector.cpp.

Teuchos::RCP< const Epetra_MultiVector > EpetraExt::BlockMultiVector::GetBlock ( int  BlockRow) const

Return Epetra_MultiVector for given block row.

Definition at line 134 of file EpetraExt_BlockMultiVector.cpp.

Teuchos::RCP< Epetra_MultiVector > EpetraExt::BlockMultiVector::GetBlock ( int  BlockRow)

Return Epetra_MultiVector for given block row.

Definition at line 151 of file EpetraExt_BlockMultiVector.cpp.

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

Return base map.

Definition at line 168 of file EpetraExt_BlockMultiVector.cpp.


Member Data Documentation

Definition at line 112 of file EpetraExt_BlockMultiVector.h.

Definition at line 114 of file EpetraExt_BlockMultiVector.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines