From 2cedb2daa6559faf102fbbfb4b62740dc8157e19 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 23 Jun 2017 08:56:10 -0600 Subject: [PATCH] Remove an assertion in 3 related functions. The assertion gets in the way of the following commit because it tests a condition that at the time when we want to call this function is not yet satisfied. However, I've convinced myself that if the DoFHandler is truly not set up at all (as the assertion wants to check), that the calls further down in the function will fail to work as well. In other words, one will get *some* kind of error. --- include/deal.II/dofs/dof_accessor.templates.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index b50ff4376a..2fe9c739f6 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -1950,8 +1950,6 @@ namespace internal const unsigned int fe_index) { const DoFHandlerType &handler = accessor.get_dof_handler(); - Assert(handler.n_dofs(level) != numbers::invalid_dof_index, - ExcNotInitialized()); const FiniteElement &fe = handler.get_fe ()[fe_index]; @@ -1976,8 +1974,6 @@ namespace internal const unsigned int fe_index) { const DoFHandlerType &handler = accessor.get_dof_handler(); - Assert(handler.n_dofs(level) != numbers::invalid_dof_index, - ExcNotInitialized()); const FiniteElement &fe = handler.get_fe ()[fe_index]; @@ -2007,8 +2003,6 @@ namespace internal const unsigned int fe_index) { const DoFHandlerType &handler = accessor.get_dof_handler(); - Assert(handler.n_dofs(level) != numbers::invalid_dof_index, - ExcNotInitialized()); const FiniteElement &fe = handler.get_fe ()[fe_index]; -- 2.39.5