Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
fprop_Standard_lex.cpp
Go to the documentation of this file.
1 
14 #include "fprop_Standard_lex.h"
15 
16 const std::string Fprop_Standard_lex::class_name = "Fprop_Standard_lex";
17 
18 //====================================================================
20 {
22 }
23 
24 
25 //====================================================================
26 void Fprop_Standard_lex::invert_D(Field& xq, const Field& b, int& Nconv, double& diff)
27 {
28  m_solver->get_fopr()->set_mode("D");
29 
30 #pragma omp parallel
31  {
32  m_solver->solve(xq, b, Nconv, diff);
33  }
34 }
35 
36 
37 //====================================================================
38 void Fprop_Standard_lex::invert_DdagD(Field& xq, const Field& b, int& Nconv, double& diff)
39 {
40  m_solver->get_fopr()->set_mode("DdagD");
41 
42 #pragma omp parallel
43  {
44  m_solver->solve(xq, b, Nconv, diff);
45  }
46 }
47 
48 
49 //====================================================================
51 {
52  return m_solver->flop_count();
53 }
54 
55 
56 //====================================================================
57 //============================================================END=====
virtual void set_mode(const std::string mode)
setting the mode of multiplication if necessary. Default implementation here is just to avoid irrelev...
Definition: fopr.h:94
virtual void set_config(Field *)=0
setting pointer to the gauge configuration.
Container of Field-type object.
Definition: field.h:45
virtual Fopr * get_fopr()=0
void invert_D(Field &, const Field &, int &, double &)
static const std::string class_name
virtual void solve(Field &solution, const Field &source, int &Nconv, double &diff)=0
virtual double flop_count()=0
void invert_DdagD(Field &, const Field &, int &, double &)