24 const std::string &strategy,
25 const double &top_parameter,
26 const double &bottom_parameter,
27 const unsigned int &max_cells,
28 const unsigned int &order) :
31 top_parameter(top_parameter),
32 bottom_parameter(bottom_parameter),
42 "Refinement strategy to use. fraction|number");
47 "Refinement fraction.");
52 "Coarsening fraction.");
55 "Maximum number of cells (if available)", std::to_string(
max_cells),
57 "Maximum number of cells.");
61 "Order (optimize)", std::to_string(
order),
63 "Maximum number of cells.");
A parameter acceptor base class.
static ParameterHandler prm
Static parameter.
ParsedGridRefinement(const std::string &name="", const std::string &strategy="fraction", const double &top_parameter=.3, const double &bottom_parameter=.1, const unsigned int &max_cells=0, const unsigned int &order=2)
Constructor.
virtual void declare_parameters(ParameterHandler &prm)
Declare local parameters.
std::string strategy
Default expression of this function.
void add_parameter(ParameterHandler &prm, T *parameter, const std::string &entry, const std::string &default_value, const Patterns::PatternBase &pattern=Patterns::Anything(), const std::string &documentation=std::string())
Add a parameter the given parameter list.