Bridge++  Ver. 2.0.2
source.cpp
Go to the documentation of this file.
1 
14 #include "source.h"
15 
16 #ifdef USE_FACTORY
17 
18 #ifdef USE_FACTORY_AUTOREGISTER
19 #else
20 // setup factories for all subclasses
21 
22 #include "source_Local.h"
23 #include "source_Wall.h"
24 #include "source_Exponential.h"
25 #include "source_MomentumWall.h"
26 #include "source_Random.h"
27 
30 
31 bool Source::init_factory()
32 {
33  bool result = true;
34 
35  result &= Source_Local::register_factory();
36  result &= Source_Wall::register_factory();
37  result &= Source_Exponential::register_factory();
38  result &= Source_MomentumWall::register_factory();
39  result &= Source_Random::register_factory();
40 
41  result &= Source_Staggered_Wall_Evenodd::register_factory();
42  result &= Source_Staggered_Wall_Cube::register_factory();
43 
44  return result;
45 }
46 
47 
48 #endif /* USE_FACTORY_AUTOREGISTER */
49 
50 #endif /* USE_FACTORY */
source_Staggered_Wall_Evenodd.h
source_Local.h
source_Random.h
source.h
source_MomentumWall.h
Momentum wall source.
source_Staggered_Wall_Cube.h
source_Wall.h
source_Exponential.h