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

#include <asolver_BiCGStab_Precond.h>

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

Public Types

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

Public Member Functions

 ASolver_BiCGStab_Precond (AFopr< AFIELD > *fopr, APrecond< AFIELD > *prec)
 constructor. More...
 
 ~ASolver_BiCGStab_Precond ()
 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 solve (AFIELD &xq, const AFIELD &b, int &nconv, real_t &diff)
 solver main. More...
 
AFopr< AFIELD > * get_afopr ()
 returns the pointer to the fermion operator. More...
 
double flop_count ()
 returns the floating point operation count. More...
 
- 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)
 
virtual AFopr< AFIELD > * get_fopr ()
 

Static Public Attributes

static const std::string class_name = "ASolver_BiCGStab_Precond"
 

Protected Member Functions

 ASolver_BiCGStab_Precond ()
 calling constructor without fermion operator is forbidden. More...
 
void init (void)
 initial setup. More...
 
void tidyup (void)
 final tidy-up. More...
 
void solve_init (const AFIELD &b, real_t &rr)
 
void solve_step (real_t &rr)
 
void prec (AFIELD &, AFIELD &)
 

Protected Attributes

int m_nconv
 to remember convergence iteration to provide flop count. More...
 
- Protected Attributes inherited from ASolver< AFIELD >
Bridge::VerboseLevel m_vl
 

Private Attributes

AFopr< AFIELD > * m_fopr
 fermion operator. More...
 
APrecond< AFIELD > * m_prec
 preconditioner. More...
 
int m_Niter
 maximum iteration number. More...
 
real_t m_Stop_cond
 stopping criterion (squared). More...
 
real_t m_Stop_cond2
 stopping criterion for inner solver. 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
 
AFIELD m_u
 
real_t m_rho_prev
 
real_t m_alpha_prev
 
real_t m_omega_prev
 

Detailed Description

template<typename AFIELD>
class ASolver_BiCGStab_Precond< AFIELD >

Definition at line 24 of file asolver_BiCGStab_Precond.h.

Member Typedef Documentation

◆ real_t

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

Definition at line 27 of file asolver_BiCGStab_Precond.h.

Constructor & Destructor Documentation

◆ ASolver_BiCGStab_Precond() [1/2]

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

calling constructor without fermion operator is forbidden.

Definition at line 50 of file asolver_BiCGStab_Precond.h.

◆ ASolver_BiCGStab_Precond() [2/2]

template<typename AFIELD >
ASolver_BiCGStab_Precond< AFIELD >::ASolver_BiCGStab_Precond ( AFopr< AFIELD > *  fopr,
APrecond< AFIELD > *  prec 
)
inline

constructor.

Definition at line 54 of file asolver_BiCGStab_Precond.h.

◆ ~ASolver_BiCGStab_Precond()

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

destructor.

Definition at line 64 of file asolver_BiCGStab_Precond.h.

Member Function Documentation

◆ flop_count()

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

returns the floating point operation count.

Reimplemented from ASolver< AFIELD >.

Definition at line 232 of file asolver_BiCGStab_Precond-tmpl.h.

◆ get_afopr()

template<typename AFIELD >
AFopr<AFIELD>* ASolver_BiCGStab_Precond< AFIELD >::get_afopr ( )
inline

returns the pointer to the fermion operator.

Definition at line 76 of file asolver_BiCGStab_Precond.h.

◆ init()

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

initial setup.

Definition at line 17 of file asolver_BiCGStab_Precond-tmpl.h.

◆ prec()

template<typename AFIELD >
void ASolver_BiCGStab_Precond< AFIELD >::prec ( AFIELD v,
AFIELD w 
)
protected

Definition at line 224 of file asolver_BiCGStab_Precond-tmpl.h.

◆ set_parameters() [1/2]

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

setting parameters.

Definition at line 78 of file asolver_BiCGStab_Precond-tmpl.h.

◆ set_parameters() [2/2]

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

setting parameters by a Parameter object.

Implements ASolver< AFIELD >.

Definition at line 49 of file asolver_BiCGStab_Precond-tmpl.h.

◆ solve()

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

solver main.

Reimplemented from ASolver< AFIELD >.

Definition at line 97 of file asolver_BiCGStab_Precond-tmpl.h.

◆ solve_init()

template<typename AFIELD >
void ASolver_BiCGStab_Precond< AFIELD >::solve_init ( const AFIELD b,
real_t rr 
)
protected

Definition at line 159 of file asolver_BiCGStab_Precond-tmpl.h.

◆ solve_step()

template<typename AFIELD >
void ASolver_BiCGStab_Precond< AFIELD >::solve_step ( real_t rr)
protected

Definition at line 182 of file asolver_BiCGStab_Precond-tmpl.h.

◆ tidyup()

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

final tidy-up.

Definition at line 40 of file asolver_BiCGStab_Precond-tmpl.h.

Member Data Documentation

◆ class_name

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

Definition at line 29 of file asolver_BiCGStab_Precond.h.

◆ m_alpha_prev

template<typename AFIELD >
real_t ASolver_BiCGStab_Precond< AFIELD >::m_alpha_prev
private

Definition at line 42 of file asolver_BiCGStab_Precond.h.

◆ m_fopr

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

fermion operator.

Definition at line 33 of file asolver_BiCGStab_Precond.h.

◆ m_nconv

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

to remember convergence iteration to provide flop count.

Definition at line 47 of file asolver_BiCGStab_Precond.h.

◆ m_Niter

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

maximum iteration number.

Definition at line 36 of file asolver_BiCGStab_Precond.h.

◆ m_omega_prev

template<typename AFIELD >
real_t ASolver_BiCGStab_Precond< AFIELD >::m_omega_prev
private

Definition at line 42 of file asolver_BiCGStab_Precond.h.

◆ m_p

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

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_prec

template<typename AFIELD >
APrecond<AFIELD>* ASolver_BiCGStab_Precond< AFIELD >::m_prec
private

preconditioner.

Definition at line 34 of file asolver_BiCGStab_Precond.h.

◆ m_r

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

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_rh

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

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_rho_prev

template<typename AFIELD >
real_t ASolver_BiCGStab_Precond< AFIELD >::m_rho_prev
private

Definition at line 42 of file asolver_BiCGStab_Precond.h.

◆ m_s

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

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_Stop_cond

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

stopping criterion (squared).

Definition at line 37 of file asolver_BiCGStab_Precond.h.

◆ m_Stop_cond2

template<typename AFIELD >
real_t ASolver_BiCGStab_Precond< AFIELD >::m_Stop_cond2
private

stopping criterion for inner solver.

Definition at line 38 of file asolver_BiCGStab_Precond.h.

◆ m_t

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

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_u

template<typename AFIELD >
AFIELD ASolver_BiCGStab_Precond< AFIELD >::m_u
private

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_v

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

Definition at line 41 of file asolver_BiCGStab_Precond.h.

◆ m_x

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

Matsufuru added: new AField_dev implementation.

Definition at line 41 of file asolver_BiCGStab_Precond.h.


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