From: Wolfgang Bangerth Date: Fri, 23 Jun 2017 14:56:10 +0000 (-0600) Subject: Remove an assertion in 3 related functions. X-Git-Tag: v9.0.0-rc1~1475^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cedb2daa6559faf102fbbfb4b62740dc8157e19;p=dealii.git 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. --- 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];