Bridge++  Ver. 1.3.x
solver_BiCGStab_Cmplx.h
Go to the documentation of this file.
1 
14 #ifndef SOLVER_BICGSTAB_CMPLX_INCLUDED
15 #define SOLVER_BICGSTAB_CMPLX_INCLUDED
16 
17 #include "solver.h"
18 
19 #include "bridgeIO.h"
20 using Bridge::vout;
21 
22 
23 //- parameters class
25 {
26  public:
28 };
29 //- end
30 
32 
45 {
46  public:
47  static const std::string class_name;
48 
49  private:
51  int m_Niter;
52  double m_Stop_cond;
53 
54  Field s, r, x, rh, p, v, t;
56 
57  public:
59  : Solver(), m_fopr(fopr) {}
60 
62  : Solver(), m_fopr(fopr.get()) {}
63 
65 
66  void set_parameters(const Parameters& params);
67  void set_parameters(const int Niter, const double Stop_cond);
68 
69  void solve(Field& solution, const Field& source,
70  int& Nconv, double& diff);
71 
72  Fopr *get_fopr() { return m_fopr; }
73 
74  private:
75  void reset_field(const Field&);
76 
77  void solve_init(const Field&, double&);
78  void solve_step(double&);
79 };
80 #endif
void reset_field(const Field &)
BridgeIO vout
Definition: bridgeIO.cpp:278
static const std::string class_name
void solve(Field &solution, const Field &source, int &Nconv, double &diff)
Container of Field-type object.
Definition: field.h:39
void set_parameters(const Parameters &params)
Class for parameters.
Definition: parameters.h:38
Solver_BiCGStab_Cmplx(unique_ptr< Fopr > &fopr)
void solve_init(const Field &, double &)
BiCGStab algorithm with complex variables.
Base class for linear solver class family.
Definition: solver.h:38
Base class of fermion operator family.
Definition: fopr.h:49