![]() |
G+Smo
25.01.0
Geometry + Simulation Modules
|
ML solver class.
This class warps the Trilinos ML package
Public Member Functions | |
std::string | currentParams () const |
Returns current parameters. | |
Epetra_Operator * | getPrecOperator () const |
Returns pointer to preconditioner operator. | |
void | getSolution (gsVector< real_t > &sol, const int rank=0) const |
Returns solution vector. | |
MLSolver (const SparseMatrix &A, const int solver=MLSolvers::SA) | |
Constructor. | |
int | numIterations () const |
Returns number of iterations. | |
void | set (const int &option, const int &value) |
Sets options/parameters for AztecOO solver. | |
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 int &value) |
Sets parameters. | |
void | set (const std::string &name, const std::string &value) |
Sets string parameters. | |
void | setOptions (const gsOptionList &opt) |
Set parameters from option list. | |
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 the solver. | |
std::string | timing () const |
Returns timing of the solver. | |
std::string | validParams () const |
Returns information about parameters. | |
~MLSolver () | |
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. | |
|
explicit |
Constructor.
Constructor (sparse matrix)
Epetra_Operator * getPrecOperator | ( | ) | const |
Returns pointer to preconditioner operator.
Returns pointer to internal preconditioner.
void set | ( | const int & | option, |
const int & | value | ||
) |
Sets options/parameters for AztecOO solver.
Sets integer paramters.
|
virtual |
|
inherited |
Set parameters from option list.
Sets parameters from option list.
|
virtual |
|
virtual |