Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source_Wall.h
Go to the documentation of this file.
1 
14 #ifndef SOURCE_WALL_INCLUDED
15 #define SOURCE_WALL_INCLUDED
16 
17 #include "source.h"
18 #include "Field/index_lex.h"
19 
20 #include "IO/bridgeIO.h"
21 using Bridge::vout;
22 
24 
32 class Source_Wall : public Source
33 {
34  public:
35  static const std::string class_name;
36 
37  private:
39  std::vector<int> m_source_position;
40  bool m_in_node;
41 
42  public:
44 
45  void set_parameters(const Parameters& params);
46  void set_parameters(const std::vector<int>& source_position);
47 
48  void set(Field& v, const int idx);
49  void set(Field& v, const int i_color, const int i_spin);
50  void set_all_color(Field& v, const int i_spin);
51  void set_all_color_spin(Field& v);
52 
53 #ifdef USE_FACTORY
54  private:
55  static Source *create_object()
56  {
57  return new Source_Wall();
58  }
59 
60  public:
61  static bool register_factory()
62  {
63  return Source::Factory::Register("Wall", create_object);
64  }
65 #endif
66 };
67 #endif /* SOURCE_WALL_INCLUDED */
BridgeIO vout
Definition: bridgeIO.cpp:503
static const std::string class_name
Definition: source_Wall.h:35
Container of Field-type object.
Definition: field.h:45
void set_all_color(Field &v, const int i_spin)
Class for parameters.
Definition: parameters.h:46
bool m_in_node
Definition: source_Wall.h:40
void set_parameters(const Parameters &params)
Definition: source_Wall.cpp:25
Lexical site index.
Definition: index_lex.h:34
Index_lex m_index
Definition: source_Wall.h:38
std::vector< int > m_source_position
Definition: source_Wall.h:39
Base class of source for a linear solver.
Definition: source.h:37
Wall source for 4-spinor fermion.
Definition: source_Wall.h:32
void set_all_color_spin(Field &v)
void set(Field &v, const int idx)