From: Marc Fehling Date: Wed, 17 Mar 2021 02:13:44 +0000 (-0600) Subject: Minor changes to DoFHandler functionalities. X-Git-Tag: v9.3.0-rc1~299^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11942%2Fhead;p=dealii.git Minor changes to DoFHandler functionalities. --- 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());