Trilinos_Util::VbrMatrixGallery Class Reference

#include <Trilinos_Util_CrsMatrixGallery.h>

Inheritance diagram for Trilinos_Util::VbrMatrixGallery:

Inheritance graph
[legend]
Collaboration diagram for Trilinos_Util::VbrMatrixGallery:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 VbrMatrixGallery (const string name, const Epetra_Map &map)
 VbrMatrixGallery (const string name, const Epetra_Comm &Comm)
 ~VbrMatrixGallery ()
const Epetra_BlockMapGetBlockMap ()
 Returns a pointer the internally stored BlockMap.
const Epetra_BlockMapGetBlockMapRef ()
Epetra_VbrMatrixGetVbrMatrix (const int NumPDEEqns)
 Returns a VbrMatrix, starting from the CsrMatrix.
Epetra_VbrMatrixGetVbrMatrix ()
 Returns a VbrMatrix, starting from the CsrMatrix.
Epetra_VbrMatrixGetVbrMatrixRef ()
Epetra_MultiVectorGetVbrRHS ()
 Returns a pointer to the RHS for the selected Vbr exact solution.
Epetra_MultiVectorGetVbrExactSolution ()
 Returns a pointer to the selected Vbr exact solution.
Epetra_MultiVectorGetVbrStartingSolution ()
 Returns a pointer to the starting solution for Vbr problems.
void CreateVbrMatrix (void)
Epetra_LinearProblemGetVbrLinearProblem ()
 Returns a pointer to Epetra_LinearProblem for VBR.
void ComputeResidualVbr (double *residual)
 Computes the 2-norm of the residual for the VBR problem.
void ComputeDiffBetweenStartingAndExactSolutionsVbr (double *residual)
 Computes the 2-norm of the difference between the starting solution and the exact solution for the VBR problem.
void PrintVbrMatrixAndVectors (ostream &os)
 Print out Vbr matrix and vectors.
void PrintVbrMatrixAndVectors ()

Protected Member Functions

void CreateBlockMap (void)
void CreateVbrExactSolution (void)
 Creates the exact solution for a Epetra_VbrMatrix.
void CreateVbrStartingSolution ()
 Creates the starting solution for Vbr.
void CreateVbrRHS ()
 Create the RHS corresponding to the desired exact solution for the Vbr problem.

Protected Attributes

Epetra_VbrMatrixVbrMatrix_
Epetra_MultiVectorVbrExactSolution_
Epetra_MultiVectorVbrStartingSolution_
Epetra_MultiVectorVbrRhs_
Epetra_BlockMapBlockMap_
int MaxBlkSize_
Epetra_LinearProblemVbrLinearProblem_

Constructor & Destructor Documentation

Trilinos_Util::VbrMatrixGallery::VbrMatrixGallery ( const string  name,
const Epetra_Map map 
) [inline]

Trilinos_Util::VbrMatrixGallery::VbrMatrixGallery ( const string  name,
const Epetra_Comm Comm 
) [inline]

Trilinos_Util::VbrMatrixGallery::~VbrMatrixGallery (  ) 


Member Function Documentation

void Trilinos_Util::VbrMatrixGallery::ComputeDiffBetweenStartingAndExactSolutionsVbr ( double *  residual  ) 

Computes the 2-norm of the difference between the starting solution and the exact solution for the VBR problem.

void Trilinos_Util::VbrMatrixGallery::ComputeResidualVbr ( double *  residual  ) 

Computes the 2-norm of the residual for the VBR problem.

void Trilinos_Util::VbrMatrixGallery::CreateBlockMap ( void   )  [protected]

void Trilinos_Util::VbrMatrixGallery::CreateVbrExactSolution ( void   )  [protected]

Creates the exact solution for a Epetra_VbrMatrix.

void Trilinos_Util::VbrMatrixGallery::CreateVbrMatrix ( void   ) 

void Trilinos_Util::VbrMatrixGallery::CreateVbrRHS (  )  [protected]

Create the RHS corresponding to the desired exact solution for the Vbr problem.

void Trilinos_Util::VbrMatrixGallery::CreateVbrStartingSolution (  )  [protected]

Creates the starting solution for Vbr.

const Epetra_BlockMap * Trilinos_Util::VbrMatrixGallery::GetBlockMap (  ) 

Returns a pointer the internally stored BlockMap.

const Epetra_BlockMap & Trilinos_Util::VbrMatrixGallery::GetBlockMapRef (  ) 

Epetra_MultiVector * Trilinos_Util::VbrMatrixGallery::GetVbrExactSolution (  ) 

Returns a pointer to the selected Vbr exact solution.

Epetra_LinearProblem * Trilinos_Util::VbrMatrixGallery::GetVbrLinearProblem (  ) 

Returns a pointer to Epetra_LinearProblem for VBR.

Epetra_VbrMatrix * Trilinos_Util::VbrMatrixGallery::GetVbrMatrix (  ) 

Returns a VbrMatrix, starting from the CsrMatrix.

Epetra_VbrMatrix * Trilinos_Util::VbrMatrixGallery::GetVbrMatrix ( const int  NumPDEEqns  ) 

Returns a VbrMatrix, starting from the CsrMatrix.

Returns a VbrMatrix, starting from the CsrMatrix. This vbr matrix is formally equivalent to the CrsMatrix returned by GetMatrix(). However, each node of the CrsMatrix is replicated num_PDE_eqns times (this value is passed in input, or set via Set("num pde eqns",IntValue)).

Epetra_VbrMatrix & Trilinos_Util::VbrMatrixGallery::GetVbrMatrixRef (  ) 

Epetra_MultiVector * Trilinos_Util::VbrMatrixGallery::GetVbrRHS (  ) 

Returns a pointer to the RHS for the selected Vbr exact solution.

Returns a pointer to the RHS corresponding to the selected exact solution to the linear systems defined by the Epetra_VbrMatrix.

Epetra_MultiVector * Trilinos_Util::VbrMatrixGallery::GetVbrStartingSolution (  ) 

Returns a pointer to the starting solution for Vbr problems.

void Trilinos_Util::VbrMatrixGallery::PrintVbrMatrixAndVectors (  ) 

void Trilinos_Util::VbrMatrixGallery::PrintVbrMatrixAndVectors ( ostream &  os  ) 

Print out Vbr matrix and vectors.


Member Data Documentation

Epetra_BlockMap* Trilinos_Util::VbrMatrixGallery::BlockMap_ [protected]

int Trilinos_Util::VbrMatrixGallery::MaxBlkSize_ [protected]

Epetra_MultiVector* Trilinos_Util::VbrMatrixGallery::VbrExactSolution_ [protected]

Epetra_LinearProblem* Trilinos_Util::VbrMatrixGallery::VbrLinearProblem_ [protected]

Epetra_VbrMatrix* Trilinos_Util::VbrMatrixGallery::VbrMatrix_ [protected]

Epetra_MultiVector* Trilinos_Util::VbrMatrixGallery::VbrRhs_ [protected]

Epetra_MultiVector* Trilinos_Util::VbrMatrixGallery::VbrStartingSolution_ [protected]


The documentation for this class was generated from the following files:
Generated on Tue Oct 20 12:50:34 2009 for TriUtils by doxygen 1.4.7