]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix obvious oversights in the previous commit...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jan 2014 02:53:03 +0000 (02:53 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 27 Jan 2014 02:53:03 +0000 (02:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@32323 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/dofs/dof_accessor.templates.h

index a0387765cc23f3e71e0597735c4147a7eb9b3479..9b689af2ab7525359d5649edee4355e4e78e0b65 100644 (file)
@@ -3456,7 +3456,10 @@ inline
 unsigned int
 DoFCellAccessor<DH,lda>::active_fe_index () const
 {
-  Assert (this->has_children() == false,
+  Assert ((dynamic_cast<const dealii::DoFHandler<DH::dimension,DH::space_dimension>*>
+          (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<DH,lda>::set_active_fe_index (const unsigned int i)
 {
-  Assert (this->has_children() == false,
+  Assert ((dynamic_cast<const dealii::DoFHandler<DH::dimension,DH::space_dimension>*>
+          (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."));

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.