From: Timo Heister Date: Sun, 14 Feb 2016 16:02:06 +0000 (-0500) Subject: fix eager Assertion in DoFAccessor X-Git-Tag: v8.5.0-rc1~1311^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2191%2Fhead;p=dealii.git fix eager Assertion in DoFAccessor TriaRawIterator constructs a DoFAccessor with NULL as the Triangulation, see include/deal.II/grid/tria_iterator.templates.h:71 so the new Assert introduced in #2179 triggers. --- diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index e599d0a863..d428e19a46 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -60,7 +60,7 @@ DoFAccessor (const Triangulation(dof_handler)) { - Assert (&dof_handler->get_triangulation() == tria, + Assert (tria == NULL || &dof_handler->get_triangulation() == tria, ExcMessage ("You can't create a DoF accessor in which the DoFHandler object " "uses a different triangulation than the one you pass as argument.")); }