Bridge++  Ver. 1.2.x
 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 "index_lex.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
23 //- parameters class
24 class Parameters_Source_Local : virtual public Parameters
25 {
26  public:
28 };
29 //- end
30 
32 
41 class Source_Local : public Source {
42  public:
43  static const std::string class_name;
44 
45  public:
46 
48  : Source() {}
49 
50  void set_parameters(const Parameters& params);
51  void set_parameters(const std::valarray<int>& source_position);
52 
53  void set(Field& v, int j);
54 
55  private:
56  Index_lex m_index; // lexical only.
57  std::valarray<int> m_source_position;
58  bool m_in_node;
59 };
60 #endif /* SOURCE_LOCAL_INCLUDED */
BridgeIO vout
Definition: bridgeIO.cpp:207
static const std::string class_name
Definition: source_Local.h:43
Index_lex m_index
Definition: source_Local.h:56
Container of Field-type object.
Definition: field.h:37
std::valarray< int > m_source_position
Definition: source_Local.h:57
Class for parameters.
Definition: parameters.h:40
void set_parameters(const Parameters &params)
Local source for 4-spinor fermion.
Definition: source_Local.h:41
Lexical site index.
Definition: index_lex.h:34
Base class of sources for a linear solver.
Definition: source.h:36
void set(Field &v, int j)