Go to the documentation of this file.
7 #ifndef INCLUDE_JET_FDM_JACOBI_SOLVER3_H_
8 #define INCLUDE_JET_FDM_JACOBI_SOLVER3_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_SOLVER3_H_
static void relax(const MatrixCsrD &A, const VectorND &b, VectorND *x, VectorND *xTemp)
Performs single Jacobi relaxation step for compressed sys.
unsigned int lastNumberOfIterations() const
Returns the last number of Jacobi iterations the solver made.
std::shared_ptr< FdmJacobiSolver3 > FdmJacobiSolver3Ptr
Shared pointer type for the FdmJacobiSolver3.
Definition: fdm_jacobi_solver3.h:67
FdmJacobiSolver3(unsigned int maxNumberOfIterations, unsigned int residualCheckInterval, double tolerance)
Constructs the solver with given parameters.
static void relax(const FdmMatrix3 &A, const FdmVector3 &b, FdmVector3 *x, FdmVector3 *xTemp)
Performs single Jacobi relaxation step.
bool solve(FdmLinearSystem3 *system) override
Solves the given 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
Compressed linear system (Ax=b) for 3-D finite differencing.
Definition: fdm_linear_system3.h:57
Linear system (Ax=b) for 3-D finite differencing.
Definition: fdm_linear_system3.h:39
double lastResidual() const
Returns the last residual after the Jacobi iterations.
bool solveCompressed(FdmCompressedLinearSystem3 *system) override
Solves the given compressed linear system.
unsigned int maxNumberOfIterations() const
Returns the max number of Jacobi iterations.
3-D array class.
Definition: array3.h:43
double tolerance() const
Returns the max residual tolerance for the Jacobi method.
3-D finite difference-type linear system solver using Jacobi method.
Definition: fdm_jacobi_solver3.h:15