Bridge++  Ver. 1.2.x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Solver_BiCGStab Class Reference

BiCGStab algorithm. More...

#include <solver_BiCGStab.h>

Inheritance diagram for Solver_BiCGStab:
Solver

Public Member Functions

 Solver_BiCGStab (Fopr *fopr)
 
 ~Solver_BiCGStab ()
 
void set_parameters (const Parameters &params)
 
void set_parameters (const int Niter, const double Stop_cond)
 
void solve (Field &solution, const Field &source, int &Nconv, double &diff)
 
Foprget_fopr ()
 
- 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"
 

Private Member Functions

void reset_field (const Field &)
 
void solve_init (const Field &, double &)
 
void solve_step (double &)
 

Private Attributes

Foprm_fopr
 
int m_Niter
 
double m_Stop_cond
 
Field s
 
Field r
 
Field x
 
Field rh
 
Field p
 
Field v
 
Field t
 
double rho_prev
 
double alpha_prev
 
double omega_prev
 

Additional Inherited Members

- Protected Attributes inherited from Solver
Bridge::VerboseLevel m_vl
 

Detailed Description

BiCGStab algorithm.

This class implements BiCGStab algorithm for nonhermitian matrix. The product of vectors is treated in not complex but real. 22 Dec 2011 H.Matsufuru YAML is implemented. [14 Nov 2012 Y.Namekawa] Multi-threaded. [17 Jul 2014 Y.Namekawa]

Definition at line 41 of file solver_BiCGStab.h.

Constructor & Destructor Documentation

Solver_BiCGStab::Solver_BiCGStab ( Fopr fopr)
inline

Definition at line 55 of file solver_BiCGStab.h.

Solver_BiCGStab::~Solver_BiCGStab ( )
inline

Definition at line 58 of file solver_BiCGStab.h.

Member Function Documentation

Fopr* Solver_BiCGStab::get_fopr ( )
inlinevirtual

Implements Solver.

Definition at line 66 of file solver_BiCGStab.h.

void Solver_BiCGStab::reset_field ( const Field b)
private

Definition at line 199 of file solver_BiCGStab.cpp.

void Solver_BiCGStab::set_parameters ( const Parameters params)
virtual

Implements Solver.

Definition at line 53 of file solver_BiCGStab.cpp.

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

Implements Solver.

Definition at line 78 of file solver_BiCGStab.cpp.

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

Implements Solver.

Definition at line 104 of file solver_BiCGStab.cpp.

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

Definition at line 224 of file solver_BiCGStab.cpp.

void Solver_BiCGStab::solve_step ( double &  rr)
private

Definition at line 250 of file solver_BiCGStab.cpp.

Member Data Documentation

double Solver_BiCGStab::alpha_prev
private

Definition at line 52 of file solver_BiCGStab.h.

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

Definition at line 44 of file solver_BiCGStab.h.

Fopr* Solver_BiCGStab::m_fopr
private

Definition at line 47 of file solver_BiCGStab.h.

int Solver_BiCGStab::m_Niter
private

Definition at line 48 of file solver_BiCGStab.h.

double Solver_BiCGStab::m_Stop_cond
private

Definition at line 49 of file solver_BiCGStab.h.

double Solver_BiCGStab::omega_prev
private

Definition at line 52 of file solver_BiCGStab.h.

Field Solver_BiCGStab::p
private

Definition at line 51 of file solver_BiCGStab.h.

Field Solver_BiCGStab::r
private

Definition at line 51 of file solver_BiCGStab.h.

Field Solver_BiCGStab::rh
private

Definition at line 51 of file solver_BiCGStab.h.

double Solver_BiCGStab::rho_prev
private

Definition at line 52 of file solver_BiCGStab.h.

Field Solver_BiCGStab::s
private

Definition at line 51 of file solver_BiCGStab.h.

Field Solver_BiCGStab::t
private

Definition at line 51 of file solver_BiCGStab.h.

Field Solver_BiCGStab::v
private

Definition at line 51 of file solver_BiCGStab.h.

Field Solver_BiCGStab::x
private

Definition at line 51 of file solver_BiCGStab.h.


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