G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AztecSolver Class Reference

Detailed Description

Actez solver class.

This class wraps the Trilinos Actez solver package

+ Inheritance diagram for AztecSolver:
+ Collaboration diagram for AztecSolver:

Public Member Functions

 AztecSolver (const SparseMatrix &A, const int solver=AztecSolvers::Gmres, const int precond=AztecPreconds::None, const int subdomain_solver=AztecSubdomainSolvers::ILUT)
 Constructor (sparse matrix)
 
std::string currentParams () const
 Returns current parameters.
 
void getSolution (gsVector< real_t > &sol, const int rank=0) const
 Returns solution vector.
 
int numIterations () const
 Returns number of iterations.
 
void set (const std::string &name, const int &value)
 Sets parameters. More...
 
void set (const std::string &name, const bool &value)
 Sets bool parameters.
 
void set (const std::string &name, const double &value)
 Sets double parameters.
 
void set (const std::string &name, const std::string &value)
 Sets string parameters.
 
void set (const int &option, const int &value)
 Sets parameters/options for for Aztec solver directly. More...
 
void set (const int &param, const double &value)
 Sets Aztec parameter directly.
 
void setOptions (const gsOptionList &opt)
 Set parameters from option list. More...
 
void setPreconditioner (const BelosSolver &Belos)
 Sets Belos solver as preconditioner. More...
 
void setPreconditioner (const MLSolver &ML)
 Sets ML solver as preconditioner. More...
 
const Vector & solve (const Vector &b)
 Solves problem for the given a right-hand side vector.
 
std::string status () const
 Returns status and timing of solver. More...
 
std::string timing () const
 Returns timing of the solver.
 
std::string validParams () const
 Returns information about parameters. More...
 
 ~AztecSolver ()
 Destructor.
 

Protected Attributes

int maxIter
 Default maximum number of iterations for all iterative solvers.
 
double tolerance
 Default tolerance for all iterative solvers.
 

Private Member Functions

void solveProblem ()
 Solves problem. More...
 

Member Function Documentation

void set ( const std::string &  name,
const int &  value 
)
virtual

Sets parameters.

Sets integer paramters.

Implements AbstractSolver.

void set ( const int &  option,
const int &  value 
)

Sets parameters/options for for Aztec solver directly.

Sets Aztec option directly.

void setOptions ( const gsOptionList opt)
inherited

Set parameters from option list.

Sets parameters from option list.

void setPreconditioner ( const BelosSolver Belos)

Sets Belos solver as preconditioner.

Sets Belos preconditioner.

void setPreconditioner ( const MLSolver ML)

Sets ML solver as preconditioner.

Sets ML preconditioner.

void solveProblem ( )
privatevirtual

Solves problem.

Solves the problem.

Implements AbstractSolver.

std::string status ( ) const
virtual

Returns status and timing of solver.

Returns status of the solver.

Implements AbstractSolver.

std::string validParams ( ) const
virtual

Returns information about parameters.

Returns valid parameters.

Implements AbstractSolver.