]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Minor changes to DoFHandler functionalities. 11942/head
authorMarc Fehling <mafehling.git@gmail.com>
Wed, 17 Mar 2021 02:13:44 +0000 (20:13 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Fri, 19 Mar 2021 01:20:07 +0000 (19:20 -0600)
include/deal.II/dofs/dof_accessor.templates.h
source/dofs/dof_handler.cc

index 17c60389a77393e120a380e2bcf1d18679467082..265f83249ef82361d8f17607380bcc3d3f7f2a5f 100644 (file)
@@ -2952,6 +2952,11 @@ DoFCellAccessor<dimension_, space_dimension_, level_dof_access>::
         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());
index e7ba6ba8a24a8603ab1c5939870e7e0be222eef9..b6c8c7f990f43467d1d7c5585dfa7f92231a915a 100644 (file)
@@ -1957,8 +1957,8 @@ namespace internal
         static unsigned int
         determine_fe_from_children(
           const typename Triangulation<dim, spacedim>::cell_iterator &,
-          const std::vector<unsigned int> &        children_fe_indices,
-          dealii::hp::FECollection<dim, spacedim> &fe_collection)
+          const std::vector<unsigned int> &              children_fe_indices,
+          const dealii::hp::FECollection<dim, spacedim> &fe_collection)
         {
           Assert(!children_fe_indices.empty(), ExcInternalError());
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.