void
full_p_adaptivity(const dealii::DoFHandler<dim, spacedim> &dof_handler)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
+
std::vector<bool> p_flags(
dof_handler.get_triangulation().n_active_cells(), true);
const dealii::DoFHandler<dim, spacedim> &dof_handler,
const std::vector<bool> & p_flags)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
p_flags.size());
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
criteria.size());
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
criteria.size());
Assert((p_refine_fraction >= 0) && (p_refine_fraction <= 1),
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
criteria.size());
Assert((p_refine_fraction >= 0) && (p_refine_fraction <= 1),
const dealii::DoFHandler<dim, spacedim> &dof_handler,
const Vector<Number> & sobolev_indices)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
sobolev_indices.size());
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
criteria.size());
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
void
force_p_over_h(const dealii::DoFHandler<dim, spacedim> &dof_handler)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
+
for (const auto &cell : dof_handler.active_cell_iterators())
if (cell->is_locally_owned() && cell->future_fe_index_set())
{
void
choose_p_over_h(const dealii::DoFHandler<dim, spacedim> &dof_handler)
{
+ Assert(
+ dof_handler.has_hp_capabilities(),
+ (typename dealii::DoFHandler<dim,
+ spacedim>::ExcNotAvailableWithoutHP()));
+
// Siblings of cells to be coarsened may not be owned by the same
// processor. We will exchange coarsening flags on ghost cells and
// temporarily store them.