Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Solver_BiCGStab_L_Cmplx Class Reference

BiCGStab(L) algorithm. More...

#include <solver_BiCGStab_L_Cmplx.h>

Inheritance diagram for Solver_BiCGStab_L_Cmplx:
Solver

Public Member Functions

 Solver_BiCGStab_L_Cmplx (Fopr *fopr)
 
 Solver_BiCGStab_L_Cmplx (unique_ptr< Fopr > &fopr)
 
 ~Solver_BiCGStab_L_Cmplx ()
 
void set_parameters (const Parameters &params)
 
void set_parameters (const int Niter, const int Nrestart, const double Stop_cond)
 
void set_parameters (const int Niter, const int Nrestart, const double Stop_cond, const bool use_init_guess)
 
void set_parameters_BiCGStab_series (const double Omega_tolerance)
 
void set_parameters_L (const int N_L)
 
void solve (Field &solution, const Field &source, int &Nconv, double &diff)
 
Foprget_fopr ()
 
double flop_count ()
 
- Public Member Functions inherited from Solver
 Solver ()
 
virtual ~Solver ()
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 

Static Public Attributes

static const std::string class_name = "Solver_BiCGStab_L_Cmplx"
 

Private Member Functions

void reset_field (const Field &)
 
void solve_init (const Field &, double &)
 
void solve_step (double &)
 
int index_ij (const int i, const int j)
 

Private Attributes

Foprm_fopr
 
int m_Niter
 
int m_Nrestart
 
double m_Stop_cond
 
bool m_use_init_guess
 
double m_Omega_tolerance
 
int m_N_L
 
double m_Tol_L
 
dcomplex m_rho_prev
 
dcomplex m_alpha_prev
 
std::vector< Fieldm_u
 
std::vector< Fieldm_r
 
Field m_s
 
Field m_x
 
Field m_r_init
 
Field m_v
 
int m_Nrestart_count
 
int m_Nconv_count
 

Additional Inherited Members

- Protected Attributes inherited from Solver
Bridge::VerboseLevel m_vl
 

Detailed Description

BiCGStab(L) algorithm.

This class implements BiCGStab(L) algorithm for a nonhermitian matrix. The product of vectors is treated in complex. See G.L.G.Sleijpen and D.R.Fokkema, Elec.Trans.Numer.Anal. 1 (1993) 11. 22 Jan 2012 Y.Namekawa YAML is implemented. [14 Nov 2012 Y.Namekawa] Multi-threaded. [17 Jul 2014 Y.Namekawa] Introduce unique_ptr to avoid memory leaks. [21 Mar 2015 Y.Namekawa] Add restart. [22 Feb 2016 Y.Namekawa] Add flop_count. [ 8 Aug 2016 Y.Namekawa] Add use_init_guess. [ 7 Jul 2017 Y.Namekawa] Add a prescription to improve stability of BiCGStab, recommended by Kanamori-san. See G.L.G.Sleijpen and H.A.van der Vorst, Numerical Algorithms 10(1995)203-22. [26 Apr 2018 Y.Namekawa]

Definition at line 44 of file solver_BiCGStab_L_Cmplx.h.

Constructor & Destructor Documentation

Solver_BiCGStab_L_Cmplx::Solver_BiCGStab_L_Cmplx ( Fopr fopr)
inline

Definition at line 71 of file solver_BiCGStab_L_Cmplx.h.

Solver_BiCGStab_L_Cmplx::Solver_BiCGStab_L_Cmplx ( unique_ptr< Fopr > &  fopr)
inline

Definition at line 81 of file solver_BiCGStab_L_Cmplx.h.

Solver_BiCGStab_L_Cmplx::~Solver_BiCGStab_L_Cmplx ( )
inline

Definition at line 91 of file solver_BiCGStab_L_Cmplx.h.

Member Function Documentation

double Solver_BiCGStab_L_Cmplx::flop_count ( )
virtual

Implements Solver.

Definition at line 422 of file solver_BiCGStab_L_Cmplx.cpp.

Fopr* Solver_BiCGStab_L_Cmplx::get_fopr ( )
inlinevirtual

Implements Solver.

Definition at line 102 of file solver_BiCGStab_L_Cmplx.h.

int Solver_BiCGStab_L_Cmplx::index_ij ( const int  i,
const int  j 
)
inlineprivate

Definition at line 112 of file solver_BiCGStab_L_Cmplx.h.

void Solver_BiCGStab_L_Cmplx::reset_field ( const Field b)
private

Definition at line 242 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::set_parameters ( const Parameters params)
virtual

Implements Solver.

Definition at line 25 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::set_parameters ( const int  Niter,
const int  Nrestart,
const double  Stop_cond 
)
virtual

Implements Solver.

Definition at line 58 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::set_parameters ( const int  Niter,
const int  Nrestart,
const double  Stop_cond,
const bool  use_init_guess 
)
virtual

Implements Solver.

Definition at line 87 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::set_parameters_BiCGStab_series ( const double  Omega_tolerance)

Definition at line 118 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::set_parameters_L ( const int  N_L)

Definition at line 134 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::solve ( Field solution,
const Field source,
int &  Nconv,
double &  diff 
)
virtual

Implements Solver.

Definition at line 154 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::solve_init ( const Field b,
double &  rr 
)
private

Definition at line 273 of file solver_BiCGStab_L_Cmplx.cpp.

void Solver_BiCGStab_L_Cmplx::solve_step ( double &  rr)
private

Definition at line 303 of file solver_BiCGStab_L_Cmplx.cpp.

Member Data Documentation

const std::string Solver_BiCGStab_L_Cmplx::class_name = "Solver_BiCGStab_L_Cmplx"
static

Definition at line 47 of file solver_BiCGStab_L_Cmplx.h.

dcomplex Solver_BiCGStab_L_Cmplx::m_alpha_prev
private

Definition at line 62 of file solver_BiCGStab_L_Cmplx.h.

Fopr* Solver_BiCGStab_L_Cmplx::m_fopr
private

Definition at line 50 of file solver_BiCGStab_L_Cmplx.h.

int Solver_BiCGStab_L_Cmplx::m_N_L
private

Definition at line 58 of file solver_BiCGStab_L_Cmplx.h.

int Solver_BiCGStab_L_Cmplx::m_Nconv_count
private

Definition at line 68 of file solver_BiCGStab_L_Cmplx.h.

int Solver_BiCGStab_L_Cmplx::m_Niter
private

Definition at line 52 of file solver_BiCGStab_L_Cmplx.h.

int Solver_BiCGStab_L_Cmplx::m_Nrestart
private

Definition at line 52 of file solver_BiCGStab_L_Cmplx.h.

int Solver_BiCGStab_L_Cmplx::m_Nrestart_count
private

Definition at line 67 of file solver_BiCGStab_L_Cmplx.h.

double Solver_BiCGStab_L_Cmplx::m_Omega_tolerance
private

Definition at line 56 of file solver_BiCGStab_L_Cmplx.h.

std::vector<Field> Solver_BiCGStab_L_Cmplx::m_r
private

Definition at line 64 of file solver_BiCGStab_L_Cmplx.h.

Field Solver_BiCGStab_L_Cmplx::m_r_init
private

Definition at line 65 of file solver_BiCGStab_L_Cmplx.h.

dcomplex Solver_BiCGStab_L_Cmplx::m_rho_prev
private

Definition at line 62 of file solver_BiCGStab_L_Cmplx.h.

Field Solver_BiCGStab_L_Cmplx::m_s
private

Definition at line 65 of file solver_BiCGStab_L_Cmplx.h.

double Solver_BiCGStab_L_Cmplx::m_Stop_cond
private

Definition at line 53 of file solver_BiCGStab_L_Cmplx.h.

double Solver_BiCGStab_L_Cmplx::m_Tol_L
private

Definition at line 59 of file solver_BiCGStab_L_Cmplx.h.

std::vector<Field> Solver_BiCGStab_L_Cmplx::m_u
private

Definition at line 64 of file solver_BiCGStab_L_Cmplx.h.

bool Solver_BiCGStab_L_Cmplx::m_use_init_guess
private

Definition at line 54 of file solver_BiCGStab_L_Cmplx.h.

Field Solver_BiCGStab_L_Cmplx::m_v
private

Definition at line 65 of file solver_BiCGStab_L_Cmplx.h.

Field Solver_BiCGStab_L_Cmplx::m_x
private

Definition at line 65 of file solver_BiCGStab_L_Cmplx.h.


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