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

Initialize all ErrorEstimatorFactory objects. More...

#include <error_estimator_factory_initializer.h>

Public Member Functions

 ErrorEstimatorFactoryInitializer ()
 
 ~ErrorEstimatorFactoryInitializer ()
 

Detailed Description

Initialize all ErrorEstimatorFactory objects.

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

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

Definition at line 35 of file error_estimator_factory_initializer.h.

Constructor & Destructor Documentation

GRINS::ErrorEstimatorFactoryInitializer::ErrorEstimatorFactoryInitializer ( )

Definition at line 39 of file error_estimator_factory_initializer.C.

References GRINS::StrategiesParsing::adjoint_refinement_error_estimator(), GRINS::StrategiesParsing::adjoint_residual_error_estimator(), GRINS::StrategiesParsing::kelly_error_estimator(), and GRINS::StrategiesParsing::patch_recovery_error_estimator().

40  {
41  static ErrorEstimatorFactoryBasic<libMesh::KellyErrorEstimator>
42  grins_factory_kelly_error_est(StrategiesParsing::kelly_error_estimator());
43 
44  static ErrorEstimatorFactoryBasic<libMesh::PatchRecoveryErrorEstimator>
45  grins_factory_patch_recovery_error_est(StrategiesParsing::patch_recovery_error_estimator());
46 
47  static AdjointRefinementErrorEstimatorFactory
48  grins_factory_adjoint_refinement_estimator(StrategiesParsing::adjoint_refinement_error_estimator());
49 
50  static AdjointResidualErrorEstimatorFactory
51  grins_factory_adjoint_residual_estimator(StrategiesParsing::adjoint_residual_error_estimator());
52  }
static std::string kelly_error_estimator()
static std::string adjoint_residual_error_estimator()
static std::string patch_recovery_error_estimator()
static std::string adjoint_refinement_error_estimator()
GRINS::ErrorEstimatorFactoryInitializer::~ErrorEstimatorFactoryInitializer ( )
inline

Definition at line 39 of file error_estimator_factory_initializer.h.

39 {}

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

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