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

Initialize all VariableFactory objects. More...

#include <variable_factory_initializer.h>

Public Member Functions

 VariableFactoryInitializer ()
 
 ~VariableFactoryInitializer ()
 

Detailed Description

Initialize all VariableFactory objects.

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

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

Definition at line 35 of file variable_factory_initializer.h.

Constructor & Destructor Documentation

GRINS::VariableFactoryInitializer::VariableFactoryInitializer ( )

Definition at line 36 of file variable_factory_initializer.C.

References GRINS::VariablesParsing::displacement_section(), GRINS::VariablesParsing::pressure_section(), GRINS::VariablesParsing::scalar_var_section(), GRINS::VariablesParsing::single_var_section(), GRINS::VariablesParsing::species_mass_fractions_section(), GRINS::VariablesParsing::temperature_section(), GRINS::VariablesParsing::thermo_pressure_section(), GRINS::VariablesParsing::turbulence_section(), and GRINS::VariablesParsing::velocity_section().

37  {
38  static VariableFactoryBasic<DisplacementVariable>
39  grins_factory_disp_fe_var(VariablesParsing::displacement_section());
40 
41  static VariableFactoryBasic<SingleVariable>
42  grins_factory_single_var(VariablesParsing::single_var_section());
43 
44  static VariableFactoryBasic<PressureFEVariable>
45  grins_factory_press_fe_var(VariablesParsing::pressure_section());
46 
47  static VariableFactoryBasic<PrimitiveTempFEVariables>
48  grins_factory_temp_fe_var(VariablesParsing::temperature_section());
49 
50  static SpeciesVariableFactory<SpeciesMassFractionsVariable>
51  grins_factory_species_mass_frac_fe_var(VariablesParsing::species_mass_fractions_section());
52 
53  static ScalarVariableFactory<ThermoPressureVariable>
54  grins_factory_thermo_press_fe_var(VariablesParsing::thermo_pressure_section());
55 
56  static VariableFactoryBasic<TurbulenceFEVariables>
57  grins_factory_turb_fe_var(VariablesParsing::turbulence_section());
58 
59  static VariableFactoryBasic<VelocityVariable>
60  grins_factory_velocity_fe_var(VariablesParsing::velocity_section());
61 
62  static ScalarVariableFactory<ScalarVariable>
63  grins_factory_scalar_var(VariablesParsing::scalar_var_section());
64  }
static std::string temperature_section()
static std::string displacement_section()
static std::string velocity_section()
static std::string species_mass_fractions_section()
static std::string thermo_pressure_section()
static std::string pressure_section()
static std::string single_var_section()
static std::string turbulence_section()
static std::string scalar_var_section()
GRINS::VariableFactoryInitializer::~VariableFactoryInitializer ( )
inline

Definition at line 39 of file variable_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