chrono::fsi::ChFsiLinearSolverGMRES Class Reference

Description

GMRES iterative linear solver.

#include <ChFsiLinearSolverGMRES.h>

Inheritance diagram for chrono::fsi::ChFsiLinearSolverGMRES:
Collaboration diagram for chrono::fsi::ChFsiLinearSolverGMRES:

Public Member Functions

 ChFsiLinearSolverGMRES (Real mrel_res=1e-8, Real mabs_res=1e-4, int mmax_iter=1000, bool mverbose=false)
 Constructor of the ChFsiLinearSolverGMRES class.
 
 ~ChFsiLinearSolverGMRES ()
 Destructor of the ChFsiLinearSolverGMRES class.
 
virtual void Solve (int SIZE, int NNZ, Real *A, unsigned int *ArowIdx, unsigned int *AcolIdx, Real *x, Real *b) override
 Solve the linear system on the device.
 
void SetRestart (int R)
 Set the restart parameter in the GMRES method.
 
- Public Member Functions inherited from chrono::fsi::ChFsiLinearSolver
 ChFsiLinearSolver (SolverType msolver, Real mrel_res=1e-8, Real mabs_res=1e-4, int mmax_iter=1000, bool mverbose=false)
 Constructor of the ChFsiLinearSolver class.
 
virtual ~ChFsiLinearSolver ()
 Destructor of the ChFsiLinearSolver class.
 
SolverType GetType ()
 Return the solver type.
 
void SetVerbose (bool mv)
 Set verbose output from solver.
 
bool GetVerbose () const
 Return whether or not verbose output is enabled.
 
Real GetResidual ()
 Return the current residual.
 
int GetNumIterations ()
 Return the number of current Iterations.
 
void SetIterationLimit (int numIter)
 Set the maximum number of iterations.
 
int GetIterationLimit ()
 Set the maximum number of iterations.
 
void SetAbsRes (Real mabs_res)
 Set the absolute residual.
 
Real GetAbsRes ()
 Get the absolute residual.
 
void SetRelRes (Real mrel_res)
 Get the relative residual.
 
Real GetRelRes ()
 Get the relative residual.
 
int GetSolverStatus ()
 Return the solver status. More...
 

Additional Inherited Members

- Public Types inherited from chrono::fsi::ChFsiLinearSolver
enum  SolverType {
  BICGSTAB, GMRES, CR, CG,
  SAP
}
 Solver type supported in ISPH.
 
- Protected Attributes inherited from chrono::fsi::ChFsiLinearSolver
Real rel_res = 1e-3
 
Real abs_res = 1e-6
 
int max_iter = 500
 
bool verbose = false
 
int Iterations = 0
 
Real residual = 1e5
 
int solver_status = 0
 

The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_fsi/math/ChFsiLinearSolverGMRES.h
  • /builds/uwsbel/chrono/src/chrono_fsi/math/ChFsiLinearSolverGMRES.cpp