Go to the documentation of this file.
7 #ifndef INCLUDE_JET_FDM_CG_SOLVER2_H_
8 #define INCLUDE_JET_FDM_CG_SOLVER2_H_
40 unsigned int _maxNumberOfIterations;
41 unsigned int _lastNumberOfIterations;
57 void clearUncompressedVectors();
58 void clearCompressedVectors();
66 #endif // INCLUDE_JET_FDM_CG_SOLVER2_H_
Compressed linear system (Ax=b) for 2-D finite differencing.
Definition: fdm_linear_system2.h:54
Linear system (Ax=b) for 2-D finite differencing.
Definition: fdm_linear_system2.h:36
FdmCgSolver2(unsigned int maxNumberOfIterations, double tolerance)
Constructs the solver with given parameters.
unsigned int lastNumberOfIterations() const
Returns the last number of CG iterations the solver made.
unsigned int maxNumberOfIterations() const
Returns the max number of CG iterations.
2-D array class.
Definition: array2.h:42
Definition: advection_solver2.h:18
std::shared_ptr< FdmCgSolver2 > FdmCgSolver2Ptr
Shared pointer type for the FdmCgSolver2.
Definition: fdm_cg_solver2.h:62
bool solveCompressed(FdmCompressedLinearSystem2 *system) override
Solves the given compressed linear system.
bool solve(FdmLinearSystem2 *system) override
Solves the given linear system.
double lastResidual() const
Returns the last residual after the CG iterations.
2-D finite difference-type linear system solver using conjugate gradient.
Definition: fdm_cg_solver2.h:16
Abstract base class for 2-D finite difference-type linear system solver.
Definition: fdm_linear_system_solver2.h:17
double tolerance() const
Returns the max residual tolerance for the CG method.