15#ifndef dealii_hp_refinement_h
16#define dealii_hp_refinement_h
32template <
typename Number>
35template <
int dim,
int spacedim>
140 template <
typename Number>
142 std::function<
bool(
const Number &,
const Number &)>;
158 template <
int dim,
int spacedim>
176 template <
int dim,
int spacedim>
179 const std::vector<bool> &p_flags);
206 template <
int dim,
typename Number,
int spacedim>
211 const Number p_refine_threshold,
212 const Number p_coarsen_threshold,
214 &compare_refine = std::greater_equal<Number>(),
216 &compare_coarsen = std::less_equal<Number>());
249 template <
int dim,
typename Number,
int spacedim>
254 const double p_refine_fraction = 0.5,
255 const double p_coarsen_fraction = 0.5,
257 &compare_refine = std::greater_equal<Number>(),
259 &compare_coarsen = std::less_equal<Number>());
293 template <
int dim,
typename Number,
int spacedim>
298 const double p_refine_fraction = 0.5,
299 const double p_coarsen_fraction = 0.5,
301 &compare_refine = std::greater_equal<Number>(),
303 &compare_coarsen = std::less_equal<Number>());
331 template <
int dim,
typename Number,
int spacedim>
356 template <
int dim,
typename Number,
int spacedim>
595 template <
int dim,
typename Number,
int spacedim>
601 const double gamma_h = 2.,
602 const double gamma_n = 1.);
624 template <
int dim,
int spacedim>
672 template <
int dim,
int spacedim>
717 template <
int dim,
int spacedim>
720 const unsigned int max_difference = 1,
721 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 > &)