Galeri Development
|
Function class containing a few static methods and constants, to be used as workspace tools. More...
#include <Galeri_core_Workspace.h>
Public Member Functions | |
Workspace () | |
Default constructor. | |
~Workspace () | |
Default destructor. | |
Static Public Member Functions | |
static void | setNumDimensions (const int numDimensions) |
Sets the number of dimension (1, 2, or 3). | |
static int | getNumDimensions () |
Returns the number of dimensions used (1, 2, or 3). | |
static void | solve_LAPACK (Epetra_RowMatrix &matrix, Epetra_MultiVector &LHS, Epetra_MultiVector &RHS) |
Solves a serial linear system using LAPACK (WARNING: ONLY SMALL MATRICES) | |
static Epetra_MultiVector * | createMultiVectorComponent (const Epetra_MultiVector &input) |
Creates a multivector that can hold a component of the specified multivector. | |
static void | extractMultiVectorComponent (const Epetra_MultiVector &input, const int equation, Epetra_MultiVector &output) |
Extracts the component of the specified equation from the input Epetra_MultiVector, and stores it in output . | |
Function class containing a few static methods and constants, to be used as workspace tools.
|
static |
Creates a multivector that can hold a component of the specified multivector.
From the input Epetra_MultiVector, defined on an Epetra_BlockMap, defines a new Epetra_Map that can host one component of the multivector, and allocates an Epetra_MultiVector based on it. This is useful in vector problems, when the input vector contains several PDE componets, and one of them has to be extracted.