OpenFCST: The open-source Fuel Cell Simulation Toolbox
|
This class implements GMRES solver. More...
#include <linear_solvers.h>
Public Member Functions | |
Constructors, destructor, and initialization | |
GMRESSolver () | |
Constructor. More... | |
~GMRESSolver () | |
Destructor. More... | |
Solve function | |
template<typename MATRIX , typename VECTOR , typename PRECONDITIONER > | |
void | solve (const MATRIX &matrix, VECTOR &solution, const VECTOR &right_hand_side, const unsigned int &n_iter, const double &tolerance, const PRECONDITIONER &preconditioner) const |
This function solves the linear system Ax = b where. More... | |
template<typename MATRIX , typename VECTOR , typename PRECONDITIONER > | |
void | solve (SolverControl &solver_control, const MATRIX &matrix, VECTOR &solution, const VECTOR &right_hand_side, const PRECONDITIONER &preconditioner) const |
This routine is used when solver_control is an object already initialized. More... | |
This class implements GMRES solver.
|
inline |
Constructor.
References FcstUtilities::log.
|
inline |
Destructor.
|
inline |
This function solves the linear system Ax = b where.
A
= matrix
,x
= solution
,b
= right_hand_side
.Other data includes
n_iter
is the max number of GMRES iterations,tolerance
is the tolerance of GMRES solver,preconditioner
is the preconditioner used.
|
inline |
This routine is used when solver_control is an object already initialized.
This function solves the linear system Ax = b where
A
= matrix
,x
= solution
,b
= right_hand_side
.solver_control