From d21827ced52ea1f2ffc98225a0310dab04e16592 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Tue, 16 Mar 2021 20:13:44 -0600 Subject: [PATCH] Minor changes to DoFHandler functionalities. --- include/deal.II/dofs/dof_accessor.templates.h | 5 +++++ source/dofs/dof_handler.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index 17c60389a7..265f83249e 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -2952,6 +2952,11 @@ DoFCellAccessor:: ExcMessage( "You ask for information on children of this cell which is only " "available for active cells. One of its children is not active.")); + Assert(child->is_locally_owned(), + ExcMessage( + "You ask for information on children of this cell which is only " + "available for locally owned cells. One of its children is not " + "locally owned.")); future_fe_indices_children.insert(child->future_fe_index()); } Assert(!future_fe_indices_children.empty(), ExcInternalError()); diff --git a/source/dofs/dof_handler.cc b/source/dofs/dof_handler.cc index e7ba6ba8a2..b6c8c7f990 100644 --- a/source/dofs/dof_handler.cc +++ b/source/dofs/dof_handler.cc @@ -1957,8 +1957,8 @@ namespace internal static unsigned int determine_fe_from_children( const typename Triangulation::cell_iterator &, - const std::vector & children_fe_indices, - dealii::hp::FECollection &fe_collection) + const std::vector & children_fe_indices, + const dealii::hp::FECollection &fe_collection) { Assert(!children_fe_indices.empty(), ExcInternalError()); -- 2.39.5