Bridge++  Ver. 1.1.x
 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 "index_lex.h"
19 
20 #include "bridgeIO.h"
21 using Bridge::vout;
22 
23 //- parameters class
24 class Parameters_Source_Wall : virtual public Parameters
25 {
26  public:
28 };
29 //- end
30 
32 
39 class Source_Wall : public Source
40 {
41  public:
43 
44  void set_parameters(const Parameters& params);
45  void set_parameters(const std::valarray<int>& source_position);
46 
47  void set(Field& v, int j);
48 
49  private:
51  std::valarray<int> m_source_position;
52  bool m_in_node;
53 };
54 #endif /* SOURCE_WALL_INCLUDED */