Bridge++  Version 1.4.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
source_Exponential.h
Go to the documentation of this file.
1 
14 #ifndef SOURCE_EXPONENTIAL_INCLUDED
15 #define SOURCE_EXPONENTIAL_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_Exponential : public Source
35 {
36  public:
37  static const std::string class_name;
38 
39  public:
40 
42 
43  void set_parameters(const Parameters& params);
44  void set_parameters(const std::vector<int>& source_position,
45  const double slope, const double power);
46 
47  void set(Field& v, int j);
48 
49  private:
51  std::vector<int> m_source_position;
52  double m_slope, m_power;
53  bool m_in_node;
55 };
56 #endif /* SOURCE_EXPONENTIAL_INCLUDED */
BridgeIO vout
Definition: bridgeIO.cpp:495
Container of Field-type object.
Definition: field.h:39
Class for parameters.
Definition: parameters.h:46
Lexical site index.
Definition: index_lex.h:34
static const std::string class_name
void set(Field &v, int j)
Exponentially smeared source for 4-spinor fermion.
std::vector< int > m_source_position
void set_parameters(const Parameters &params)
Base class of source for a linear solver.
Definition: source.h:35