GRINS-0.8.0
List of all members | Public Member Functions
GRINS::SolverFactoryInitializer Class Reference

Initialize all Factory objects related to Solvers. More...

#include <solver_factory_initializer.h>

Public Member Functions

 SolverFactoryInitializer ()
 
 ~SolverFactoryInitializer ()
 

Detailed Description

Initialize all Factory objects related to Solvers.

To avoid symbol stripping from static linking, we use this class to initialize/register the Solvers factory objects.

Relevant discussion: http://stackoverflow.com/questions/5202142/static-variable-initialization-over-a-library

Definition at line 35 of file solver_factory_initializer.h.

Constructor & Destructor Documentation

GRINS::SolverFactoryInitializer::SolverFactoryInitializer ( )

Definition at line 40 of file solver_factory_initializer.C.

References GRINS::SolverNames::steady_mesh_adaptive_solver(), GRINS::SolverNames::steady_solver(), GRINS::SolverNames::unsteady_mesh_adaptive_solver(), and GRINS::SolverNames::unsteady_solver().

41  {
42  static SolverFactoryBasic<UnsteadySolver>
43  grins_factory_unsteady_solver(SolverNames::unsteady_solver());
44 
45  static SolverFactoryBasic<SteadySolver>
46  grins_factory_steady_solver(SolverNames::steady_solver());
47 
48  static SolverFactoryBasic<UnsteadyMeshAdaptiveSolver>
49  grins_factory_unsteady_mesh_adapt_solver(SolverNames::unsteady_mesh_adaptive_solver());
50 
51  static SolverFactoryBasic<SteadyMeshAdaptiveSolver>
52  grins_factory_steady_mesh_adapt_solver(SolverNames::steady_mesh_adaptive_solver());
53  }
static const std::string unsteady_solver()
Definition: solver_names.h:37
static const std::string steady_mesh_adaptive_solver()
Definition: solver_names.h:40
static const std::string unsteady_mesh_adaptive_solver()
Definition: solver_names.h:43
static const std::string steady_solver()
Definition: solver_names.h:34
GRINS::SolverFactoryInitializer::~SolverFactoryInitializer ( )
inline

Definition at line 39 of file solver_factory_initializer.h.

39 {}

The documentation for this class was generated from the following files:

Generated on Tue Dec 19 2017 12:47:32 for GRINS-0.8.0 by  doxygen 1.8.9.1