]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove Assert in CellAccessor::face() 194/head
authorTimo Heister <timo.heister@gmail.com>
Fri, 10 Oct 2014 14:44:25 +0000 (10:44 -0400)
committerTimo Heister <timo.heister@gmail.com>
Fri, 10 Oct 2014 14:59:59 +0000 (10:59 -0400)
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

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

index fbcd2db82f0ed18f6b68be0f0ff17d199917bb26..1a3882701d1877c543e2e60eb54296ef83b551ee 100644 (file)
@@ -3245,8 +3245,6 @@ typename DoFCellAccessor<DH,level_dof_access>::face_iterator
 DoFCellAccessor<DH,level_dof_access>::face (const unsigned int i) const
 {
   Assert (i<GeometryInfo<dim>::faces_per_cell, ExcIndexRange (i, 0, GeometryInfo<dim>::faces_per_cell));
-  Assert (static_cast<unsigned int>(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<dim>());

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.