LifeV
SolverPolicyLinearSolver Struct Referenceabstract

#include <SolverPolicyLinearSolver.hpp>

+ Collaboration diagram for SolverPolicyLinearSolver:

Public Types

typedef MatrixEpetra< Realmatrix_Type
 
typedef std::shared_ptr< matrix_TypematrixPtr_Type
 
typedef VectorEpetra vector_Type
 
typedef std::shared_ptr< VectorEpetravectorPtr_Type
 
typedef Epetra_Comm comm_Type
 
typedef std::shared_ptr< comm_TypecommPtr_Type
 
typedef LinearSolver solver_Type
 
typedef std::shared_ptr< solver_TypesolverPtr_Type
 
typedef Preconditioner preconditioner_Type
 
typedef std::shared_ptr< preconditioner_TypepreconditionerPtr_Type
 

Public Member Functions

void setPreconditioner (preconditionerPtr_Type preconditionerPtr)
 Method to set a preconditioner. More...
 
preconditionerPtr_Type preconditioner ()
 Method to get a preconditioner. More...
 

Protected Member Functions

void initSolver (Teuchos::ParameterList &list)
 
int solve (matrixPtr_Type systemMatrix, vectorPtr_Type rhs, vectorPtr_Type solution)
 
virtual Displayer displayer ()=0
 
virtual commPtr_Type comm ()=0
 

Protected Attributes

solverPtr_Type M_solver
 

Detailed Description

Definition at line 65 of file SolverPolicyLinearSolver.hpp.

Member Typedef Documentation

◆ matrix_Type

Definition at line 68 of file SolverPolicyLinearSolver.hpp.

◆ matrixPtr_Type

typedef std::shared_ptr<matrix_Type> matrixPtr_Type

Definition at line 69 of file SolverPolicyLinearSolver.hpp.

◆ vector_Type

Definition at line 70 of file SolverPolicyLinearSolver.hpp.

◆ vectorPtr_Type

typedef std::shared_ptr<VectorEpetra> vectorPtr_Type

Definition at line 71 of file SolverPolicyLinearSolver.hpp.

◆ comm_Type

typedef Epetra_Comm comm_Type

Definition at line 72 of file SolverPolicyLinearSolver.hpp.

◆ commPtr_Type

typedef std::shared_ptr<comm_Type> commPtr_Type

Definition at line 73 of file SolverPolicyLinearSolver.hpp.

◆ solver_Type

Definition at line 74 of file SolverPolicyLinearSolver.hpp.

◆ solverPtr_Type

typedef std::shared_ptr< solver_Type > solverPtr_Type

Definition at line 75 of file SolverPolicyLinearSolver.hpp.

◆ preconditioner_Type

◆ preconditionerPtr_Type

typedef std::shared_ptr<preconditioner_Type> preconditionerPtr_Type

Definition at line 77 of file SolverPolicyLinearSolver.hpp.

Member Function Documentation

◆ setPreconditioner()

void setPreconditioner ( preconditionerPtr_Type  preconditionerPtr)

Method to set a preconditioner.

Parameters
preconditionerPtrPreconditioner to be used to solve the system

Definition at line 65 of file SolverPolicyLinearSolver.cpp.

◆ preconditioner()

Method to get a preconditioner.

Definition at line 71 of file SolverPolicyLinearSolver.cpp.

◆ initSolver()

void initSolver ( Teuchos::ParameterList &  list)
protected

Definition at line 45 of file SolverPolicyLinearSolver.cpp.

◆ solve()

int solve ( matrixPtr_Type  systemMatrix,
vectorPtr_Type  rhs,
vectorPtr_Type  solution 
)
protected

Definition at line 78 of file SolverPolicyLinearSolver.cpp.

◆ displayer()

virtual Displayer displayer ( )
protectedpure virtual

◆ comm()

virtual commPtr_Type comm ( )
protectedpure virtual

Field Documentation

◆ M_solver

solverPtr_Type M_solver
protected

Definition at line 94 of file SolverPolicyLinearSolver.hpp.


The documentation for this struct was generated from the following files: