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

#include <strategies_parsing.h>

Public Member Functions

 StrategiesParsing ()
 
 ~StrategiesParsing ()
 

Static Public Member Functions

static int extra_quadrature_order (const GetPot &input)
 
static std::string adjoint_residual_error_estimator ()
 
static std::string adjoint_refinement_error_estimator ()
 
static std::string kelly_error_estimator ()
 
static std::string patch_recovery_error_estimator ()
 
static bool do_adjoint_solve (const GetPot &input)
 Option to let user manually trigger adjoint solve. More...
 

Detailed Description

Definition at line 39 of file strategies_parsing.h.

Constructor & Destructor Documentation

GRINS::StrategiesParsing::StrategiesParsing ( )
inline

Definition at line 43 of file strategies_parsing.h.

43 {};
GRINS::StrategiesParsing::~StrategiesParsing ( )
inline

Definition at line 45 of file strategies_parsing.h.

45 {};

Member Function Documentation

static std::string GRINS::StrategiesParsing::adjoint_refinement_error_estimator ( )
inlinestatic

Definition at line 52 of file strategies_parsing.h.

Referenced by GRINS::ErrorEstimatorFactoryInitializer::ErrorEstimatorFactoryInitializer().

53  { return "adjoint_refinement"; }
static std::string GRINS::StrategiesParsing::adjoint_residual_error_estimator ( )
inlinestatic
bool GRINS::StrategiesParsing::do_adjoint_solve ( const GetPot &  input)
static

Option to let user manually trigger adjoint solve.

Definition at line 45 of file strategies_parsing.C.

References do_adjoint_solve().

Referenced by GRINS::Simulation::check_for_adjoint_solve(), and do_adjoint_solve().

46  {
47  bool do_adjoint_solve = false;
48  std::string old_option = "linear-nonlinear-solver/do_adjoint_solve";
49  std::string new_option = "Strategies/Adjoint/do_adjoint_solve";
50 
51  bool have_old_option = input.have_variable(old_option);
52  bool have_new_option = input.have_variable(new_option);
53  if( have_old_option && have_new_option )
54  libmesh_error_msg("ERROR: Cannot specify both "+old_option+" and "+new_option+"!");
55 
56  if( have_old_option )
57  do_adjoint_solve = input( old_option, false );
58 
59  if( have_new_option )
60  do_adjoint_solve = input( new_option, false );
61 
62  return do_adjoint_solve;
63  }
static bool do_adjoint_solve(const GetPot &input)
Option to let user manually trigger adjoint solve.
int GRINS::StrategiesParsing::extra_quadrature_order ( const GetPot &  input)
static

Definition at line 35 of file strategies_parsing.C.

Referenced by GRINS::Simulation::init_multiphysics_system().

36  {
37  int extra_order = input("Strategies/Assembly/extra_quadrature_order", 0);
38 
39  if( extra_order < 0 )
40  libmesh_error_msg("ERROR: extra_quadrature_order must be non-negative!");
41 
42  return extra_order;
43  }
static std::string GRINS::StrategiesParsing::kelly_error_estimator ( )
inlinestatic

Definition at line 55 of file strategies_parsing.h.

Referenced by GRINS::ErrorEstimatorFactoryInitializer::ErrorEstimatorFactoryInitializer().

56  { return "kelly"; }
static std::string GRINS::StrategiesParsing::patch_recovery_error_estimator ( )
inlinestatic

Definition at line 58 of file strategies_parsing.h.

Referenced by GRINS::ErrorEstimatorFactoryInitializer::ErrorEstimatorFactoryInitializer().

59  { return "patch_recovery"; }

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