SolverAmesos - Class to wrap linear solver.
More...
#include <SolverAmesos.hpp>
◆ value_type
◆ commPtr_Type
◆ solver_type
◆ matrix_type
◆ vector_type
◆ prec_raw_type
◆ prec_type
◆ matrix_ptrtype
◆ vector_ptrtype
◆ SolverAmesos()
◆ ~SolverAmesos()
◆ computeResidual()
Compute the residual.
- Parameters
-
solution | Solution vector |
rhs | Right hand side of the system |
Definition at line 62 of file SolverAmesos.cpp.
◆ solveSystem()
Solves the system and returns the number of iterations.
returns number of iterations. If negative, the solver did not converge, the preconditionar has been recomputed, and a second solution is tried
- Parameters
-
rhsFull | Right hand side vector |
solution | Vector to store the solution |
Definition at line 77 of file SolverAmesos.cpp.
◆ printStatus()
◆ isPreconditionerSet()
bool isPreconditionerSet |
( |
| ) |
const |
Return true if the preconditioner is set.
Note: This method always return true!
Definition at line 142 of file SolverAmesos.cpp.
◆ resetPreconditioner()
void resetPreconditioner |
( |
| ) |
|
Delete the stored preconditioner.
Note: This method is empty
Definition at line 147 of file SolverAmesos.cpp.
◆ setupPreconditioner()
void setupPreconditioner |
( |
const GetPot & |
dataFile, |
|
|
const std::string & |
section |
|
) |
| |
Setup the preconditioner.
Note: This method is empty
- Parameters
-
dataFile | GetPot object which contains the data about the preconditioner |
section | Section the GetPot structure where to find the informations about the preconditioner |
Definition at line 152 of file SolverAmesos.cpp.
◆ setReusePreconditioner()
void setReusePreconditioner |
( |
const bool & |
| ) |
|
Specify if the preconditioner should be reuse or not.
Note: This method is empty
- Parameters
-
reusePreconditioner | If set to true, do not recompute the preconditioner |
Definition at line 157 of file SolverAmesos.cpp.
◆ showMe()
void showMe |
( |
std::ostream & |
output = std::cout | ) |
const |
◆ setMatrix()
◆ setOperator()
Method to set a general linear operator (of class derived from Epetra_Operator) defining the linear system.
- Parameters
-
oper | Operator for the system |
Definition at line 182 of file SolverAmesos.cpp.
◆ setDataFromGetPot()
void setDataFromGetPot |
( |
const GetPot & |
dataFile, |
|
|
const std::string & |
section |
|
) |
| |
Method to setup the solver using GetPot.
- Parameters
-
dataFile | GetPot object which contains the data about the solver |
Definition at line 187 of file SolverAmesos.cpp.
◆ setParameter()
void setParameter |
( |
const std::string & |
name, |
|
|
const ParameterType |
value |
|
) |
| |
|
inline |
Set a parameter in the list.
- Parameters
-
name | name of the parameter |
value | value of the parameter |
Definition at line 188 of file SolverAmesos.hpp.
◆ setParameters()
Set the current parameters with the internal parameters list.
Note: The parameter list is set using "setDataFromGetPot".
- Parameters
-
cerrWarningIfUnused | If true the solver return warning if some parameters are unused |
Definition at line 211 of file SolverAmesos.cpp.
◆ setParametersList()
void setParametersList |
( |
const Teuchos::ParameterList & |
list | ) |
|
|
inline |
Set the current parameters list.
- Parameters
-
list | Teuchos parameters list |
Definition at line 204 of file SolverAmesos.hpp.
◆ setTolerance()
void setTolerance |
( |
const Real |
tolerance | ) |
|
Set the tolerance of the solver.
- Parameters
-
tolerance | Tolerance for the solver |
◆ setMaxNumIterations()
void setMaxNumIterations |
( |
const Int |
maxIter = -1 | ) |
|
Set the tolerance and the maximum number of iterations.
- Parameters
-
maxIter | Maximum number of iteration |
◆ numIterations()
◆ trueResidual()
◆ parametersList()
const Teuchos::ParameterList& parametersList |
( |
| ) |
const |
|
inline |
Get the current parameters list.
- Returns
- Teuchos parameters list
Definition at line 237 of file SolverAmesos.hpp.
◆ createSolver()
void createSolver |
( |
const std::string & |
solverType | ) |
|
|
private |
Create a solver using a factory.
- Parameters
-
solverType | String containing the name of the solver |
Definition at line 241 of file SolverAmesos.cpp.
◆ M_matrix
◆ M_problem
Epetra_LinearProblem M_problem |
|
private |
◆ M_solver
Amesos_BaseSolver* M_solver |
|
private |
◆ M_trilinosParameterList
Teuchos::ParameterList M_trilinosParameterList |
|
private |
◆ M_displayer
The documentation for this class was generated from the following files: