From: Wolfgang Bangerth Date: Mon, 27 Jan 2014 02:53:03 +0000 (+0000) Subject: Fix obvious oversights in the previous commit... X-Git-Tag: v8.2.0-rc1~947 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9827f65117b47499d4c06b07a8b60bc59a34da65;p=dealii.git Fix obvious oversights in the previous commit... git-svn-id: https://svn.dealii.org/trunk@32323 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/dofs/dof_accessor.templates.h b/deal.II/include/deal.II/dofs/dof_accessor.templates.h index a0387765cc..9b689af2ab 100644 --- a/deal.II/include/deal.II/dofs/dof_accessor.templates.h +++ b/deal.II/include/deal.II/dofs/dof_accessor.templates.h @@ -3456,7 +3456,10 @@ inline unsigned int DoFCellAccessor::active_fe_index () const { - Assert (this->has_children() == false, + Assert ((dynamic_cast*> + (this->dof_handler) != 0) + || + (this->has_children() == false), ExcMessage ("You can not ask for the active_fe_index on a cell that has " "children because no degrees of freedom are assigned " "to this cell and, consequently, no finite element " @@ -3471,7 +3474,10 @@ inline void DoFCellAccessor::set_active_fe_index (const unsigned int i) { - Assert (this->has_children() == false, + Assert ((dynamic_cast*> + (this->dof_handler) != 0) + || + (this->has_children() == false), ExcMessage ("You can not set the active_fe_index on a cell that has " "children because no degrees of freedom will be assigned " "to this cell."));