Go to the documentation of this file.
7 #ifndef INCLUDE_JET_FDM_JACOBI_SOLVER2_H_
8 #define INCLUDE_JET_FDM_JACOBI_SOLVER2_H_
19 unsigned int residualCheckInterval,
double tolerance);
48 unsigned int _maxNumberOfIterations;
49 unsigned int _lastNumberOfIterations;
50 unsigned int _residualCheckInterval;
62 void clearUncompressedVectors();
63 void clearCompressedVectors();
71 #endif // INCLUDE_JET_FDM_JACOBI_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
static void relax(const MatrixCsrD &A, const VectorND &b, VectorND *x, VectorND *xTemp)
Performs single Jacobi relaxation step for compressed sys.
unsigned int maxNumberOfIterations() const
Returns the max number of Jacobi iterations.
unsigned int lastNumberOfIterations() const
Returns the last number of Jacobi iterations the solver made.
static void relax(const FdmMatrix2 &A, const FdmVector2 &b, FdmVector2 *x, FdmVector2 *xTemp)
Performs single Jacobi relaxation step.
double tolerance() const
Returns the max residual tolerance for the Jacobi method.
2-D array class.
Definition: array2.h:42
Definition: advection_solver2.h:18
FdmJacobiSolver2(unsigned int maxNumberOfIterations, unsigned int residualCheckInterval, double tolerance)
Constructs the solver with given parameters.
2-D finite difference-type linear system solver using Jacobi method.
Definition: fdm_jacobi_solver2.h:15
double lastResidual() const
Returns the last residual after the Jacobi iterations.
Abstract base class for 2-D finite difference-type linear system solver.
Definition: fdm_linear_system_solver2.h:17
bool solveCompressed(FdmCompressedLinearSystem2 *system) override
Solves the given compressed linear system.
std::shared_ptr< FdmJacobiSolver2 > FdmJacobiSolver2Ptr
Shared pointer type for the FdmJacobiSolver2.
Definition: fdm_jacobi_solver2.h:67
bool solve(FdmLinearSystem2 *system) override
Solves the given linear system.