Bridge++  Ver.2.1.3
bridge_init_factory.cpp
Go to the documentation of this file.
1 
14 #include "bridge_init_factory.h"
15 
16 #ifdef USE_FACTORY
17 
18 #include "Fopr/fopr.h"
19 #include "Force/Gauge/force_G.h"
20 //#include "Force/Fermion/forceSmear.h"
21 #include "Smear/forceSmear.h"
22 #include "Solver/solver.h"
23 #include "Action/action.h"
24 #include "Smear/smear.h"
25 #include "Smear/projection.h"
29 #include "Tools/randomNumbers.h"
30 #include "Tools/gammaMatrixSet.h"
31 #ifdef USE_FFTWLIB
32 #include "Tools/fft.h"
33 #endif
34 
35 #ifdef USE_FACTORY_AUTOREGISTER
36 #else
37 
38 bool bridge_init_factory()
39 {
40  bool result = true;
41 
42  result &= Fopr::init_factory();
43  result &= Force_G::init_factory();
44  result &= ForceSmear::init_factory();
45  result &= Solver::init_factory();
46  result &= Action::init_factory();
47  result &= Projection::init_factory();
48  result &= Smear::init_factory();
49  result &= GaugeFixing::init_factory();
50  result &= Source::init_factory();
51  result &= Staple::init_factory();
52  result &= RandomNumbers::init_factory();
53  result &= GammaMatrixSet::init_factory();
54 #ifdef USE_FFTWLIB
55  result &= FFT::init_factory();
56 #endif
57 
58  return result;
59 }
60 
61 
62 #endif /* USE_FACTORY_AUTOREGISTER */
63 
64 #ifdef DEBUG
65 void bridge_report_factory()
66 {
67  vout.general("------------------------------------------------\n");
68  vout.general("Factory entries\n");
69  vout.general("------------------------------------------------\n");
70 
71  Fopr::Factory_noarg::print("Fopr(void)");
72  Fopr::Factory_fopr::print("Fopr(Fopr*)");
73  Fopr::Factory_fopr_director::print("Fopr(Fopr*, Director*)");
74  Fopr::Factory_string::print("Fopr(string)");
75 
76  Force_G::Factory::print("Force_G");
77 
78  ForceSmear::Factory::print("ForceSmear");
79 
80  Solver::Factory::print("Solver");
81 
82  Action::Factory::print("Action");
83 
84  Projection::Factory::print("Projection");
85  Smear::Factory::print("Smear");
86 
87  GaugeFixing::Factory::print("GaugeFixing");
88 
89  Source::Factory::print("Source");
90 
91  Staple::Factory::print("Staple");
92 
93  RandomNumbers::Factory_int::print("RandomNumbers(int)");
94  RandomNumbers::Factory_file::print("RandomNumbers(string)");
95 
96  GammaMatrixSet::Factory::print("GammaMatrixSet");
97 
98  vout.general("------------------------------------------------\n");
99 }
100 
101 
102 #endif
103 
104 #endif /* USE_FACTORY */
solver.h
randomNumbers.h
action.h
source.h
projection.h
forceSmear.h
bridge_init_factory.h
force_G.h
fopr.h
smear.h
staple.h
fft.h
gaugeFixing.h
Bridge::BridgeIO::general
void general(const char *format,...)
Definition: bridgeIO.cpp:262
gammaMatrixSet.h
Bridge::vout
BridgeIO vout
Definition: bridgeIO.cpp:572