Go to the documentation of this file.
7 #ifndef INCLUDE_JET_FDM_CG_SOLVER3_H_
8 #define INCLUDE_JET_FDM_CG_SOLVER3_H_
40 unsigned int _maxNumberOfIterations;
41 unsigned int _lastNumberOfIterations;
57 void clearUncompressedVectors();
58 void clearCompressedVectors();
66 #endif // INCLUDE_JET_FDM_CG_SOLVER3_H_
std::shared_ptr< FdmCgSolver3 > FdmCgSolver3Ptr
Shared pointer type for the FdmCgSolver3.
Definition: fdm_cg_solver3.h:62
double lastResidual() const
Returns the last residual after the CG iterations.
bool solveCompressed(FdmCompressedLinearSystem3 *system) override
Solves the given compressed linear system.
Definition: advection_solver2.h:18
Abstract base class for 3-D finite difference-type linear system solver.
Definition: fdm_linear_system_solver3.h:17
bool solve(FdmLinearSystem3 *system) override
Solves the given linear system.
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition: fdm_linear_system3.h:57
3-D finite difference-type linear system solver using conjugate gradient.
Definition: fdm_cg_solver3.h:16
double tolerance() const
Returns the max residual tolerance for the CG method.
FdmCgSolver3(unsigned int maxNumberOfIterations, double tolerance)
Constructs the solver with given parameters.
Linear system (Ax=b) for 3-D finite differencing.
Definition: fdm_linear_system3.h:39
unsigned int lastNumberOfIterations() const
Returns the last number of CG iterations the solver made.
3-D array class.
Definition: array3.h:43
unsigned int maxNumberOfIterations() const
Returns the max number of CG iterations.