void
full_p_adaptivity(const dealii::DoFHandler<dim, spacedim> &dof_handler)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const dealii::DoFHandler<dim, spacedim> &dof_handler,
const std::vector<bool> & p_flags)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const dealii::DoFHandler<dim, spacedim> &dof_handler,
const Vector<Number> & sobolev_indices)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const ComparisonFunction<typename identity<Number>::type>
&compare_coarsen)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const double gamma_h,
const double gamma_n)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
error_indicators.size());
AssertDimension(dof_handler.get_triangulation().n_active_cells(),
void
force_p_over_h(const dealii::DoFHandler<dim, spacedim> &dof_handler)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
void
choose_p_over_h(const dealii::DoFHandler<dim, spacedim> &dof_handler)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));
const unsigned int max_difference,
const unsigned int contains_fe_index)
{
+ if (dof_handler.get_fe_collection().size() == 0)
+ // nothing to do
+ return false;
+
Assert(
dof_handler.has_hp_capabilities(),
(typename dealii::DoFHandler<dim, spacedim>::ExcOnlyAvailableWithHP()));