]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove an assertion in 3 related functions.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 23 Jun 2017 14:56:10 +0000 (08:56 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 23 Jun 2017 14:56:10 +0000 (08:56 -0600)
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

index b50ff4376a7087e7bdaf5daab5ef1e2cb1df3a84..2fe9c739f665f0e883a89ccd318e776b75a551a5 100644 (file)
@@ -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<DoFHandlerType::dimension, DoFHandlerType::space_dimension> &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<DoFHandlerType::dimension, DoFHandlerType::space_dimension> &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<DoFHandlerType::dimension, DoFHandlerType::space_dimension> &fe
         = handler.get_fe ()[fe_index];

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.