Bridge++  Ver. 1.3.x
solver_CGNE.h
Go to the documentation of this file.
1 
14 #ifndef SOLVER_CGNE_INCLUDED
15 #define SOLVER_CGNE_INCLUDED
16 
17 #include "solver_CG.h"
18 
19 //- parameters class
20 class Parameters_Solver_CGNE : virtual public Parameters
21 {
22  public:
24 };
25 //- end
26 
28 
40 class Solver_CGNE : public Solver_CG
41 {
42  private:
44 
45  public:
46  static const std::string class_name;
47 
49  : Solver_CG(fopr) {}
50 
52  : Solver_CG(fopr.get()) {}
53 
55 
56  void set_parameters(const Parameters& params);
57 
58  void solve(Field& solution, const Field& source, int& Nconv, double& diff);
59 
60  Fopr *get_fopr() { return this->Solver_CG::get_fopr(); }
61 
62  private:
63 };
64 #endif
Fopr * get_fopr()
Definition: solver_CG.h:71
static const std::string class_name
Definition: solver_CGNE.h:46
Container of Field-type object.
Definition: field.h:39
Class for parameters.
Definition: parameters.h:38
Solver_CGNE(Fopr *fopr)
Definition: solver_CGNE.h:48
Standard Conjugate Gradient solver algorithm.
Definition: solver_CG.h:43
Solver_CGNE(unique_ptr< Fopr > &fopr)
Definition: solver_CGNE.h:51
void solve(Field &solution, const Field &source, int &Nconv, double &diff)
Definition: solver_CGNE.cpp:62
void set_parameters(const Parameters &params)
Definition: solver_CGNE.cpp:55
CGNE solver.
Definition: solver_CGNE.h:40
Fopr * get_fopr()
Definition: solver_CGNE.h:60
Base class of fermion operator family.
Definition: fopr.h:49