Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
solver.cpp
Go to the documentation of this file.
1 
14 #include "solver.h"
15 
16 #ifdef USE_FACTORY
17 
18 #ifdef USE_FACTORY_AUTOREGISTER
19 #else
20 // setup factories for all subclasses
21 
22 #include "solver_CG.h"
23 #include "solver_CGNE.h"
24 #include "solver_CGNR.h"
25 #include "solver_BiCGStab_Cmplx.h"
29 #include "solver_GMRES_m_Cmplx.h"
30 
31 bool Solver::init_factory()
32 {
33  bool result = true;
34 
35  result &= Solver_CG::register_factory();
36  result &= Solver_CGNE::register_factory();
37  result &= Solver_CGNR::register_factory();
38  result &= Solver_BiCGStab_Cmplx::register_factory();
39  result &= Solver_BiCGStab_L_Cmplx::register_factory();
40  result &= Solver_BiCGStab_DS_L_Cmplx::register_factory();
41  result &= Solver_BiCGStab_IDS_L_Cmplx::register_factory();
42  result &= Solver_GMRES_m_Cmplx::register_factory();
43 
44  return result;
45 }
46 
47 
48 #endif /* USE_FACTORY_AUTOREGISTER */
49 
50 #endif /* USE_FACTORY */