From 0b746d7b802ce803d0857fcea9bdcb4381905e84 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 30 Aug 2013 18:14:12 +0000 Subject: [PATCH] Fix an assertion. git-svn-id: https://svn.dealii.org/trunk@30538 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/hp/dof_levels.h | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/deal.II/include/deal.II/hp/dof_levels.h b/deal.II/include/deal.II/hp/dof_levels.h index 29d328a8bc..bf59dc830e 100644 --- a/deal.II/include/deal.II/hp/dof_levels.h +++ b/deal.II/include/deal.II/hp/dof_levels.h @@ -258,16 +258,8 @@ namespace internal DoFLevel:: active_fe_index (const unsigned int obj_index) const { - 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())); return active_fe_indices[obj_index]; } -- 2.39.5