Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
force_F.h
Go to the documentation of this file.
1 
14 #ifndef FORCE_F_INCLUDED
15 #define FORCE_F_INCLUDED
16 
17 #include "Field/field_G.h"
18 #include "Parameters/parameters.h"
19 
21 
31 class Force
32 {
33  public:
35  : m_U(0),
36  m_vl(CommonParameters::Vlevel()) {}
37 
38  virtual ~Force() {}
39 
40  private:
41  // non-copyable
42  Force(const Force&);
43  Force& operator=(const Force&);
44 
45  public:
46  virtual void set_parameters(const Parameters&) = 0;
47 
49 
50  virtual void set_config(Field *) = 0;
51 
53  virtual void set_mode(const std::string& mode)
54  {
55  // do nothing if not defined in a subclass.
56  }
57 
58  virtual void force_core(Field&, const Field&);
59  virtual void force_core1(Field&, const Field&, const Field&);
60 
61  virtual void force_udiv(Field&, const Field&) {}
62  virtual void force_udiv1(Field&, const Field&, const Field&) {}
63 
64  private:
65  void mult_generator(Field_G&);
66 
67  protected:
70 };
71 #endif
Bridge::VerboseLevel m_vl
Definition: force_F.h:69
Container of Field-type object.
Definition: field.h:45
virtual void set_config(Field *)=0
Field_G * m_U
Definition: force_F.h:68
virtual ~Force()
Definition: force_F.h:38
Base class of fermion force calculation.
Definition: force_F.h:31
Class for parameters.
Definition: parameters.h:46
virtual void force_core1(Field &, const Field &, const Field &)
Definition: force_F.cpp:34
void set_parameter_verboselevel(const Bridge::VerboseLevel vl)
Definition: force_F.h:48
SU(N) gauge field.
Definition: field_G.h:38
virtual void set_mode(const std::string &mode)
in Force, setting the mode is optional when H is nonhermitian.
Definition: force_F.h:53
Common parameter class: provides parameters as singleton.
virtual void force_core(Field &, const Field &)
Definition: force_F.cpp:18
Force & operator=(const Force &)
virtual void force_udiv(Field &, const Field &)
Definition: force_F.h:61
Bridge::VerboseLevel vl
VerboseLevel
Definition: bridgeIO.h:42
Force()
Definition: force_F.h:34
virtual void force_udiv1(Field &, const Field &, const Field &)
Definition: force_F.h:62
virtual void set_parameters(const Parameters &)=0
void mult_generator(Field_G &)
Definition: force_F.cpp:51