MFEM  v4.2.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
mfem::GinkgoWrappers::GMRESSolver Class Reference

#include <ginkgo.hpp>

Inheritance diagram for mfem::GinkgoWrappers::GMRESSolver:
[legend]
Collaboration diagram for mfem::GinkgoWrappers::GMRESSolver:
[legend]

Public Member Functions

void SetKDim (int dim)
 
 GMRESSolver (const std::string &exec_type, int print_iter, int max_num_iter, double RTOLERANCE, double ATOLERANCE)
 
 GMRESSolver (const std::string &exec_type, int print_iter, int max_num_iter, double RTOLERANCE, double ATOLERANCE, const gko::LinOpFactory *preconditioner)
 
- Public Member Functions inherited from mfem::GinkgoWrappers::GinkgoIterativeSolverBase
 GinkgoIterativeSolverBase (const std::string &exec_type, int print_iter, int max_num_iter, double RTOLERANCE, double ATOLERANCE)
 
virtual ~GinkgoIterativeSolverBase ()=default
 
void initialize (const SparseMatrix *matrix)
 
void apply (Vector &solution, const Vector &rhs)
 
void solve (const SparseMatrix *matrix, Vector &solution, const Vector &rhs)
 

Protected Attributes

int m
 
- Protected Attributes inherited from mfem::GinkgoWrappers::GinkgoIterativeSolverBase
int print_lvl
 
int max_iter
 
double rel_tol
 
double abs_tol
 
double final_norm
 
int final_iter
 
int converged
 
std::shared_ptr
< gko::LinOpFactory > 
solver_gen
 
std::shared_ptr
< gko::stop::ResidualNormReduction
<>::Factory > 
residual_criterion
 
std::shared_ptr
< gko::log::Convergence<> > 
convergence_logger
 
std::shared_ptr< ResidualLogger<> > residual_logger
 
std::shared_ptr
< gko::stop::Combined::Factory > 
combined_factory
 
std::shared_ptr< gko::Executor > executor
 

Detailed Description

An implementation of the solver interface using the Ginkgo GMRES solver.

Definition at line 547 of file ginkgo.hpp.

Constructor & Destructor Documentation

mfem::GinkgoWrappers::GMRESSolver::GMRESSolver ( const std::string &  exec_type,
int  print_iter,
int  max_num_iter,
double  RTOLERANCE,
double  ATOLERANCE 
)

Constructor.

Parameters
[in]exec_typeThe execution paradigm for the solver.
[in]print_iterA setting to control the printing to the screen.
[in]max_num_iterThe maximum number of iterations to be run.
[in]RTOLERANCEThe relative tolerance to be achieved.
[in]ATOLERANCEThe absolute tolerance to be achieved.

Definition at line 409 of file ginkgo.cpp.

mfem::GinkgoWrappers::GMRESSolver::GMRESSolver ( const std::string &  exec_type,
int  print_iter,
int  max_num_iter,
double  RTOLERANCE,
double  ATOLERANCE,
const gko::LinOpFactory *  preconditioner 
)

Constructor.

Parameters
[in]exec_typeThe execution paradigm for the solver.
[in]print_iterA setting to control the printing to the screen.
[in]max_num_iterThe maximum number of iterations to be run.
[in]RTOLERANCEThe relative tolerance to be achieved.
[in]ATOLERANCEThe absolute tolerance to be achieved.
[in]preconditionerThe preconditioner for the solver.

Definition at line 426 of file ginkgo.cpp.

Member Function Documentation

void mfem::GinkgoWrappers::GMRESSolver::SetKDim ( int  dim)
inline

Definition at line 550 of file ginkgo.hpp.

Member Data Documentation

int mfem::GinkgoWrappers::GMRESSolver::m
protected

Definition at line 590 of file ginkgo.hpp.


The documentation for this class was generated from the following files: