Bridge++  Ver. 2.0.2
ASolver_BiCGStab< AFIELD > Class Template Reference

#include <asolver_BiCGStab.h>

Inheritance diagram for ASolver_BiCGStab< AFIELD >:
ASolver< AFIELD >

Public Types

typedef AFIELD::real_t real_t
 
using InitialGuess = typename ASolver< AFIELD >::InitialGuess
 
- Public Types inherited from ASolver< AFIELD >
enum  InitialGuess { RHS, GIVEN, ZERO }
 
typedef AFIELD::real_t real_t
 

Public Member Functions

 ASolver_BiCGStab (AFopr< AFIELD > *fopr)
 constructor. More...
 
 ~ASolver_BiCGStab ()
 destructor. More...
 
void set_parameters (const Parameters &params)
 setting parameters by a Parameter object. More...
 
void set_parameters (const int Niter, const real_t Stop_cond)
 setting parameters. More...
 
void set_parameters (const int Niter, const real_t Stop_cond, const InitialGuess init_mode)
 setting parameters. More...
 
void set_init_mode (const InitialGuess init_guess)
 setting the initial guess mode More...
 
void set_parameters_BiCGStab_series (const real_t Omega_tolerance)
 setting BiCGStab specific parameters. More...
 
void solve (AFIELD &xq, const AFIELD &b, int &nconv, real_t &diff)
 solver main. More...
 
AFopr< AFIELD > * get_fopr ()
 returns the pointer to the fermion operator. More...
 
double flop_count ()
 returns the floating point operation count. More...
 
const std::string class_name
 
const std::string class_name
 
- Public Member Functions inherited from ASolver< AFIELD >
 ASolver ()
 
virtual ~ASolver ()
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 
virtual void set_init_mode (const InitialGuess init_guess)
 

Static Public Attributes

static const std::string class_name = "ASolver_BiCGStab"
 

Protected Member Functions

 ASolver_BiCGStab ()
 calling constructor without fermion operator is forbidden. More...
 
void init (void)
 
void tidyup (void)
 
void solve_init (const AFIELD &b, real_t &rr, real_t &alpha_prev, real_t &rho_prev, real_t &omega_prev, const InitialGuess init_mode)
 
void solve_step (real_t &rr, int &iflg, real_t &alpha_prev, real_t &rho_prev, real_t &omega_prev)
 

Protected Attributes

int m_nconv
 to remember convergence iteration to provide flop count. More...
 
int m_init_mult
 to remember convergence iteration to provide flop count. More...
 
InitialGuess m_initial_mode
 mode switch for initial guess More...
 
- Protected Attributes inherited from ASolver< AFIELD >
Bridge::VerboseLevel m_vl
 

Private Attributes

AFopr< AFIELD > * m_fopr
 fermion operator. More...
 
int m_Niter
 maximum iteration number. More...
 
real_t m_Stop_cond
 stopping criterion (squared). More...
 
real_t m_Omega_tolerance
 tolerance for the stability More...
 
real_t m_ecrit
 to avoid too small denominator denominator. More...
 
AFIELD m_x
 Matsufuru added: new AField_dev implementation. More...
 
AFIELD m_r
 
AFIELD m_p
 
AFIELD m_s
 
AFIELD m_rh
 
AFIELD m_v
 
AFIELD m_t
 

Detailed Description

template<typename AFIELD>
class ASolver_BiCGStab< AFIELD >

Definition at line 15 of file asolver_BiCGStab.h.

Member Typedef Documentation

◆ InitialGuess

template<typename AFIELD >
using ASolver_BiCGStab< AFIELD >::InitialGuess = typename ASolver<AFIELD>::InitialGuess

Definition at line 21 of file asolver_BiCGStab.h.

◆ real_t

template<typename AFIELD >
typedef AFIELD::real_t ASolver_BiCGStab< AFIELD >::real_t

Definition at line 18 of file asolver_BiCGStab.h.

Constructor & Destructor Documentation

◆ ASolver_BiCGStab() [1/2]

template<typename AFIELD >
ASolver_BiCGStab< AFIELD >::ASolver_BiCGStab ( )
inlineprotected

calling constructor without fermion operator is forbidden.

Definition at line 51 of file asolver_BiCGStab.h.

◆ ASolver_BiCGStab() [2/2]

template<typename AFIELD >
ASolver_BiCGStab< AFIELD >::ASolver_BiCGStab ( AFopr< AFIELD > *  fopr)
inline

constructor.

Definition at line 55 of file asolver_BiCGStab.h.

◆ ~ASolver_BiCGStab()

template<typename AFIELD >
ASolver_BiCGStab< AFIELD >::~ASolver_BiCGStab ( )
inline

destructor.

Definition at line 63 of file asolver_BiCGStab.h.

Member Function Documentation

◆ class_name() [1/2]

const std::string ASolver_BiCGStab< AField< double, QXS > >::class_name

Definition at line 23 of file asolver_BiCGStab.cpp.

◆ class_name() [2/2]

const std::string ASolver_BiCGStab< AField< float, QXS > >::class_name

Definition at line 37 of file asolver_BiCGStab.cpp.

◆ flop_count()

template<typename AFIELD >
double ASolver_BiCGStab< AFIELD >::flop_count
virtual

returns the floating point operation count.

Reimplemented from ASolver< AFIELD >.

Definition at line 387 of file asolver_BiCGStab-tmpl.h.

◆ get_fopr()

template<typename AFIELD >
AFopr<AFIELD>* ASolver_BiCGStab< AFIELD >::get_fopr ( )
inlinevirtual

returns the pointer to the fermion operator.

Reimplemented from ASolver< AFIELD >.

Definition at line 87 of file asolver_BiCGStab.h.

◆ init()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::init ( void  )
protected

Definition at line 16 of file asolver_BiCGStab-tmpl.h.

◆ set_init_mode()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::set_init_mode ( const InitialGuess  init_guess)
inline

setting the initial guess mode

Definition at line 75 of file asolver_BiCGStab.h.

◆ set_parameters() [1/3]

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::set_parameters ( const int  Niter,
const real_t  Stop_cond 
)

setting parameters.

Definition at line 93 of file asolver_BiCGStab-tmpl.h.

◆ set_parameters() [2/3]

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::set_parameters ( const int  Niter,
const real_t  Stop_cond,
const InitialGuess  init_mode 
)

setting parameters.

◆ set_parameters() [3/3]

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::set_parameters ( const Parameters params)
virtual

setting parameters by a Parameter object.

Implements ASolver< AFIELD >.

Definition at line 57 of file asolver_BiCGStab-tmpl.h.

◆ set_parameters_BiCGStab_series()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::set_parameters_BiCGStab_series ( const real_t  Omega_tolerance)

setting BiCGStab specific parameters.

Definition at line 125 of file asolver_BiCGStab-tmpl.h.

◆ solve()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::solve ( AFIELD xq,
const AFIELD b,
int &  nconv,
real_t diff 
)
virtual

solver main.

Reimplemented from ASolver< AFIELD >.

Definition at line 142 of file asolver_BiCGStab-tmpl.h.

◆ solve_init()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::solve_init ( const AFIELD b,
real_t rr,
real_t alpha_prev,
real_t rho_prev,
real_t omega_prev,
const InitialGuess  init_mode 
)
protected

Definition at line 252 of file asolver_BiCGStab-tmpl.h.

◆ solve_step()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::solve_step ( real_t rr,
int &  iflg,
real_t alpha_prev,
real_t rho_prev,
real_t omega_prev 
)
protected

Definition at line 294 of file asolver_BiCGStab-tmpl.h.

◆ tidyup()

template<typename AFIELD >
void ASolver_BiCGStab< AFIELD >::tidyup ( void  )
protected

Definition at line 48 of file asolver_BiCGStab-tmpl.h.

Member Data Documentation

◆ class_name

template<typename AFIELD >
const std::string ASolver_BiCGStab< AFIELD >::class_name = "ASolver_BiCGStab"
static

Definition at line 20 of file asolver_BiCGStab.h.

◆ m_ecrit

template<typename AFIELD >
real_t ASolver_BiCGStab< AFIELD >::m_ecrit
private

to avoid too small denominator denominator.

Definition at line 32 of file asolver_BiCGStab.h.

◆ m_fopr

template<typename AFIELD >
AFopr<AFIELD>* ASolver_BiCGStab< AFIELD >::m_fopr
private

fermion operator.

Definition at line 25 of file asolver_BiCGStab.h.

◆ m_init_mult

template<typename AFIELD >
int ASolver_BiCGStab< AFIELD >::m_init_mult
protected

to remember convergence iteration to provide flop count.

Definition at line 45 of file asolver_BiCGStab.h.

◆ m_initial_mode

template<typename AFIELD >
InitialGuess ASolver_BiCGStab< AFIELD >::m_initial_mode
protected

mode switch for initial guess

Definition at line 48 of file asolver_BiCGStab.h.

◆ m_nconv

template<typename AFIELD >
int ASolver_BiCGStab< AFIELD >::m_nconv
protected

to remember convergence iteration to provide flop count.

Definition at line 42 of file asolver_BiCGStab.h.

◆ m_Niter

template<typename AFIELD >
int ASolver_BiCGStab< AFIELD >::m_Niter
private

maximum iteration number.

Definition at line 27 of file asolver_BiCGStab.h.

◆ m_Omega_tolerance

template<typename AFIELD >
real_t ASolver_BiCGStab< AFIELD >::m_Omega_tolerance
private

tolerance for the stability

Definition at line 30 of file asolver_BiCGStab.h.

◆ m_p

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_p
private

Definition at line 36 of file asolver_BiCGStab.h.

◆ m_r

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_r
private

Definition at line 36 of file asolver_BiCGStab.h.

◆ m_rh

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_rh
private

Definition at line 36 of file asolver_BiCGStab.h.

◆ m_s

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_s
private

Definition at line 36 of file asolver_BiCGStab.h.

◆ m_Stop_cond

template<typename AFIELD >
real_t ASolver_BiCGStab< AFIELD >::m_Stop_cond
private

stopping criterion (squared).

Definition at line 28 of file asolver_BiCGStab.h.

◆ m_t

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_t
private

Definition at line 36 of file asolver_BiCGStab.h.

◆ m_v

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_v
private

Definition at line 36 of file asolver_BiCGStab.h.

◆ m_x

template<typename AFIELD >
AFIELD ASolver_BiCGStab< AFIELD >::m_x
private

Matsufuru added: new AField_dev implementation.

Definition at line 36 of file asolver_BiCGStab.h.


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