From: Wolfgang Bangerth Date: Fri, 30 Aug 2013 18:54:21 +0000 (+0000) Subject: Fix another buggy assertion. X-Git-Tag: v8.1.0~921 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba311389a900f0b92209477cffe8de355135f876;p=dealii.git Fix another buggy assertion. git-svn-id: https://svn.dealii.org/trunk@30539 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/hp/dof_levels.h b/deal.II/include/deal.II/hp/dof_levels.h index bf59dc830e..f307cc7172 100644 --- a/deal.II/include/deal.II/hp/dof_levels.h +++ b/deal.II/include/deal.II/hp/dof_levels.h @@ -299,16 +299,8 @@ namespace internal set_active_fe_index (const unsigned int obj_index, const unsigned int fe_index) { - Assert (obj_index < dof_offsets.size(), - ExcIndexRange (obj_index, 0, dof_offsets.size())); - - // make sure we are on an - // object for which DoFs have - // been allocated at all - Assert (dof_offsets[obj_index] != numbers::invalid_dof_index, - ExcMessage ("You are trying to access degree of freedom " - "information for an object on which no such " - "information is available")); + Assert (obj_index < active_fe_indices.size(), + ExcIndexRange (obj_index, 0, active_fe_indices.size())); active_fe_indices[obj_index] = fe_index; }