Bridge++
Version 1.5.4
|
Multishift Conjugate Gradient solver. More...
#include <shiftsolver_CG.h>
Public Member Functions | |
Shiftsolver_CG (Fopr *fopr) | |
Shiftsolver_CG (Fopr *fopr, const int niter, const double stop_cond) | |
Shiftsolver_CG (unique_ptr< Fopr > &fopr) | |
Shiftsolver_CG (unique_ptr< Fopr > &fopr, const int niter, const double stop_cond) | |
~Shiftsolver_CG () | |
void | set_parameters (const Parameters ¶ms) |
void | set_parameters (const int niter, const double stop_cond) |
void | solve (std::vector< Field > &solution, const std::vector< double > &shift, const Field &source, int &Nconv, double &diff) |
Public Member Functions inherited from Shiftsolver | |
Shiftsolver () | |
virtual | ~Shiftsolver () |
void | set_parameter_verboselevel (const Bridge::VerboseLevel vl) |
Static Public Attributes | |
static const std::string | class_name = "Shiftsolver_CG" |
Private Member Functions | |
void | solve_init (double &) |
void | solve_step (double &) |
void | reset_field (const Field &b, const std::vector< double > &sigma, const int Nshift) |
Private Attributes | |
Fopr * | m_fopr |
int | m_Niter |
double | m_Stop_cond |
std::vector< Field > | m_x |
std::vector< Field > | m_p |
Field | m_r |
Field | m_s |
std::vector< double > | m_zeta1 |
std::vector< double > | m_zeta2 |
std::vector< double > | m_csh2 |
std::vector< double > | m_pp |
double | m_snorm |
double | m_alpha_p |
double | m_beta_p |
int | m_Nshift2 |
double | m_sigma0 |
Additional Inherited Members | |
Protected Attributes inherited from Shiftsolver | |
Bridge::VerboseLevel | m_vl |
Multishift Conjugate Gradient solver.
[23 Dec 2011 H.Matsufuru] unique_ptr is introduced to avoid memory leaks [21 Mar 2015 Y.Namekawa]
Definition at line 31 of file shiftsolver_CG.h.
|
inline |
Definition at line 52 of file shiftsolver_CG.h.
|
inline |
Definition at line 55 of file shiftsolver_CG.h.
|
inline |
Definition at line 61 of file shiftsolver_CG.h.
|
inline |
Definition at line 64 of file shiftsolver_CG.h.
|
inline |
Definition at line 70 of file shiftsolver_CG.h.
|
private |
Definition at line 258 of file shiftsolver_CG.cpp.
|
virtual |
Implements Shiftsolver.
Definition at line 19 of file shiftsolver_CG.cpp.
void Shiftsolver_CG::set_parameters | ( | const int | niter, |
const double | stop_cond | ||
) |
Definition at line 43 of file shiftsolver_CG.cpp.
|
virtual |
Implements Shiftsolver.
Definition at line 67 of file shiftsolver_CG.cpp.
|
private |
Definition at line 159 of file shiftsolver_CG.cpp.
|
private |
Definition at line 184 of file shiftsolver_CG.cpp.
|
static |
Definition at line 34 of file shiftsolver_CG.h.
|
private |
Definition at line 46 of file shiftsolver_CG.h.
|
private |
Definition at line 46 of file shiftsolver_CG.h.
|
private |
Definition at line 44 of file shiftsolver_CG.h.
|
private |
Definition at line 37 of file shiftsolver_CG.h.
|
private |
Definition at line 39 of file shiftsolver_CG.h.
|
private |
Definition at line 47 of file shiftsolver_CG.h.
|
private |
Definition at line 42 of file shiftsolver_CG.h.
|
private |
Definition at line 44 of file shiftsolver_CG.h.
|
private |
Definition at line 43 of file shiftsolver_CG.h.
|
private |
Definition at line 43 of file shiftsolver_CG.h.
|
private |
Definition at line 49 of file shiftsolver_CG.h.
|
private |
Definition at line 46 of file shiftsolver_CG.h.
|
private |
Definition at line 40 of file shiftsolver_CG.h.
|
private |
Definition at line 42 of file shiftsolver_CG.h.
|
private |
Definition at line 44 of file shiftsolver_CG.h.
|
private |
Definition at line 44 of file shiftsolver_CG.h.