Bridge++  Ver. 1.3.x
source_MomentumWall.h
Go to the documentation of this file.
1 
14 #ifndef SOURCE_MOMENTUM_WALL_INCLUDED
15 #define SOURCE_MOMENTUM_WALL_INCLUDED
16 
17 #include "source.h"
18 #include "index_lex.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
23 //- parameters class
25 {
26  public:
28 };
29 //- end
30 
32 
43 {
44  public:
45  static const std::string class_name;
46 
47  public:
49 
50  void set_parameters(const Parameters& params);
51  void set_parameters(const std::vector<int>& source_position,
52  const std::vector<double>& source_momentum);
53 
54  void set(Field& v, int j);
55 
56  private:
58  std::vector<int> m_source_position;
59  std::vector<double> m_source_momentum;
60  bool m_in_node;
61 };
62 #endif /* SOURCE_MOMENTUM_WALL_INCLUDED */
BridgeIO vout
Definition: bridgeIO.cpp:278
Momentum wall source for 4-spinor fermion.
std::vector< double > m_source_momentum
static const std::string class_name
Container of Field-type object.
Definition: field.h:39
Class for parameters.
Definition: parameters.h:38
void set(Field &v, int j)
Lexical site index.
Definition: index_lex.h:34
Base class of sources for a linear solver.
Definition: source.h:35
std::vector< int > m_source_position
void set_parameters(const Parameters &params)