]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Return default_fe_index instead of 0. Remove outdated comments.
authorMarc Fehling <mafehling.git@gmail.com>
Fri, 10 Mar 2023 10:21:20 +0000 (03:21 -0700)
committerMarc Fehling <mafehling.git@gmail.com>
Tue, 21 Mar 2023 09:55:30 +0000 (10:55 +0100)
include/deal.II/dofs/dof_accessor.templates.h

index 51ac5fd2fb41b3b01bf350aafcdc3e46237ee460..c89bbf66e8e95b9085e1ff110e80524fb4b11400 100644 (file)
@@ -2140,8 +2140,7 @@ namespace internal
         const DoFCellAccessor<dim, spacedim, level_dof_access> &accessor)
       {
         if (accessor.dof_handler->hp_capability_enabled == false)
-          return 0; // ::DoFHandler only supports a single active FE with index
-                    // zero
+          return DoFHandler<dim, spacedim>::default_fe_index;
 
         Assert(
           accessor.dof_handler != nullptr,
@@ -2168,7 +2167,6 @@ namespace internal
       {
         if (accessor.dof_handler->hp_capability_enabled == false)
           {
-            // ::DoFHandler only supports a single active FE with index zero
             AssertDimension(i, (DoFHandler<dim, spacedim>::default_fe_index));
             return;
           }
@@ -2199,10 +2197,7 @@ namespace internal
         const DoFCellAccessor<dim, spacedim, level_dof_access> &accessor)
       {
         if (accessor.dof_handler->hp_capability_enabled == false)
-          return DoFHandler<dim, spacedim>::
-            default_fe_index; // ::DoFHandler only supports
-                              // a single active FE with
-                              // index zero
+          return DoFHandler<dim, spacedim>::default_fe_index;
 
         Assert(
           accessor.dof_handler != nullptr,
@@ -2234,7 +2229,6 @@ namespace internal
       {
         if (accessor.dof_handler->hp_capability_enabled == false)
           {
-            // ::DoFHandler only supports a single active FE with index zero
             AssertDimension(i, (DoFHandler<dim, spacedim>::default_fe_index));
             return;
           }
@@ -2265,8 +2259,7 @@ namespace internal
         const DoFCellAccessor<dim, spacedim, level_dof_access> &accessor)
       {
         if (accessor.dof_handler->hp_capability_enabled == false)
-          return false; // ::DoFHandler only supports a single active FE with
-                        // index zero
+          return false;
 
         Assert(
           accessor.dof_handler != nullptr,
@@ -2293,8 +2286,7 @@ namespace internal
         const DoFCellAccessor<dim, spacedim, level_dof_access> &accessor)
       {
         if (accessor.dof_handler->hp_capability_enabled == false)
-          return; // ::DoFHandler only supports a single active FE with index
-                  // zero
+          return;
 
         Assert(
           accessor.dof_handler != nullptr,

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.