Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source_Local.h
Go to the documentation of this file.
1 
14 #ifndef SOURCE_LOCAL_INCLUDED
15 #define SOURCE_LOCAL_INCLUDED
16 
17 #include "source.h"
18 #include "Field/index_lex.h"
19 
20 #include "IO/bridgeIO.h"
21 using Bridge::vout;
22 
23 
25 
34 class Source_Local : public Source {
35  public:
36  static const std::string class_name;
37 
38  public:
39 
41  : Source() {}
42 
43  void set_parameters(const Parameters& params);
44  void set_parameters(const std::vector<int>& source_position);
45 
46  void set(Field& v, int j);
47 
48  private:
49  Index_lex m_index; // lexical only.
50  std::vector<int> m_source_position;
51  bool m_in_node;
52 };
53 #endif /* SOURCE_LOCAL_INCLUDED */
BridgeIO vout
Definition: bridgeIO.cpp:495
static const std::string class_name
Definition: source_Local.h:36
Index_lex m_index
Definition: source_Local.h:49
Container of Field-type object.
Definition: field.h:39
Class for parameters.
Definition: parameters.h:46
void set_parameters(const Parameters &params)
Local source for 4-spinor fermion.
Definition: source_Local.h:34
Lexical site index.
Definition: index_lex.h:34
Base class of source for a linear solver.
Definition: source.h:35
void set(Field &v, int j)
std::vector< int > m_source_position
Definition: source_Local.h:50