From: Timo Heister Date: Fri, 10 Oct 2014 14:44:25 +0000 (-0400) Subject: Remove Assert in CellAccessor::face() X-Git-Tag: v8.2.0-rc1~108^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F194%2Fhead;p=dealii.git Remove Assert in CellAccessor::face() The Assert checked that DoFs are distributed before allowing the use of ::face(), which is overly restrictive. Also see https://groups.google.com/d/topic/dealii/G3Xp-Uv72_M/discussion --- diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index fbcd2db82f..1a3882701d 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -3245,8 +3245,6 @@ typename DoFCellAccessor::face_iterator DoFCellAccessor::face (const unsigned int i) const { Assert (i::faces_per_cell, ExcIndexRange (i, 0, GeometryInfo::faces_per_cell)); - Assert (static_cast(this->level()) < this->dof_handler->levels.size(), - ExcMessage ("DoFHandler not initialized")); const unsigned int dim = DH::dimension; return dealii::internal::DoFCellAccessor::get_face (*this, i, dealii::internal::int2type());