33 #include "libmesh/getpot.h"
38 : _estimator_type(
"none"),
40 _n_adjoint_h_refinements(1),
41 _n_adjoint_p_refinements(0),
42 _compute_qoi_error_estimate(false)
54 if( input.have_section(
"MeshAdaptivity") &&
55 input.have_section(
"Strategies/ErrorEstimation") )
56 libmesh_error_msg(
"ERROR: Cannot use both old and new style of options for ErrorEstimator!");
61 return input.have_section(
"MeshAdaptivity");
67 std::string warning =
"WARNING: Using [MeshAdaptivity/<options>] is a DEPRECATED\n";
68 warning +=
" style of input for ErrorEstimator options. Please\n";
69 warning +=
" update to use the [Strategies/ErrorEstimation/<options> style.\n";
74 _patch_reuse = input(
"MeshAdaptivity/patch_reuse",
false);
82 _estimator_type = input(
"Strategies/ErrorEstimation/estimator_type",
"none");
83 _patch_reuse = input(
"Strategies/ErrorEstimation/patch_reuse",
false);
91 bool requires_adjoint =
false;
94 requires_adjoint =
true;
96 return requires_adjoint;
void parse_new_style(const GetPot &input)
void check_dup_input_style(const GetPot &input) const
bool estimator_requires_adjoint() const
ErrorEstimatorOptions(const GetPot &input)
static std::string adjoint_residual_error_estimator()
bool is_old_style(const GetPot &input) const
#define grins_warning(message)
bool _compute_qoi_error_estimate
unsigned char _n_adjoint_p_refinements
std::string _estimator_type
unsigned char _n_adjoint_h_refinements
void parse_old_style(const GetPot &input)