16#ifndef dealii_hp_refinement_h
17#define dealii_hp_refinement_h
33template <
typename Number>
36template <
int dim,
int spacedim>
141 template <
typename Number>
143 std::function<
bool(
const Number &,
const Number &)>;
159 template <
int dim,
int spacedim>
177 template <
int dim,
int spacedim>
180 const std::vector<bool> & p_flags);
207 template <
int dim,
typename Number,
int spacedim>
212 const Number p_refine_threshold,
213 const Number p_coarsen_threshold,
215 &compare_refine = std::greater_equal<Number>(),
217 &compare_coarsen = std::less_equal<Number>());
250 template <
int dim,
typename Number,
int spacedim>
255 const double p_refine_fraction = 0.5,
256 const double p_coarsen_fraction = 0.5,
258 &compare_refine = std::greater_equal<Number>(),
260 &compare_coarsen = std::less_equal<Number>());
294 template <
int dim,
typename Number,
int spacedim>
299 const double p_refine_fraction = 0.5,
300 const double p_coarsen_fraction = 0.5,
302 &compare_refine = std::greater_equal<Number>(),
304 &compare_coarsen = std::less_equal<Number>());
332 template <
int dim,
typename Number,
int spacedim>
357 template <
int dim,
typename Number,
int spacedim>
596 template <
int dim,
typename Number,
int spacedim>
602 const double gamma_h = 2.,
603 const double gamma_n = 1.);
625 template <
int dim,
int spacedim>
673 template <
int dim,
int spacedim>
718 template <
int dim,
int spacedim>
721 const unsigned int max_difference = 1,
722 const unsigned int contains_fe_index = 0);
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
void force_p_over_h(const DoFHandler< dim, spacedim > &dof_handler)
void p_adaptivity_from_reference(const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const Vector< Number > &references, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen)
void full_p_adaptivity(const DoFHandler< dim, spacedim > &dof_handler)
void p_adaptivity_from_regularity(const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &sobolev_indices)
bool limit_p_level_difference(const DoFHandler< dim, spacedim > &dof_handler, const unsigned int max_difference=1, const unsigned int contains_fe_index=0)
void predict_error(const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &error_indicators, Vector< Number > &predicted_errors, const double gamma_p=std::sqrt(0.4), const double gamma_h=2., const double gamma_n=1.)
void p_adaptivity_from_absolute_threshold(const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const Number p_refine_threshold, const Number p_coarsen_threshold, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine=std::greater_equal< Number >(), const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen=std::less_equal< Number >())
void choose_p_over_h(const DoFHandler< dim, spacedim > &dof_handler)
void p_adaptivity_fixed_number(const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const double p_refine_fraction=0.5, const double p_coarsen_fraction=0.5, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine=std::greater_equal< Number >(), const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen=std::less_equal< Number >())
std::function< bool(const Number &, const Number &)> ComparisonFunction
void p_adaptivity_from_relative_threshold(const DoFHandler< dim, spacedim > &dof_handler, const Vector< Number > &criteria, const double p_refine_fraction=0.5, const double p_coarsen_fraction=0.5, const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_refine=std::greater_equal< Number >(), const ComparisonFunction< std_cxx20::type_identity_t< Number > > &compare_coarsen=std::less_equal< Number >())
void p_adaptivity_from_flags(const DoFHandler< dim, spacedim > &dof_handler, const std::vector< bool > &p_flags)
typename type_identity< T >::type type_identity_t
::VectorizedArray< Number, width > sqrt(const ::VectorizedArray< Number, width > &)