From: Marc Fehling Date: Fri, 10 Mar 2023 10:21:20 +0000 (-0700) Subject: Return default_fe_index instead of 0. Remove outdated comments. X-Git-Tag: v9.5.0-rc1~301^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=366f1a4d43b3129dffbd73c7d0da0e530fd8b67d;p=dealii.git Return default_fe_index instead of 0. Remove outdated comments. --- diff --git a/include/deal.II/dofs/dof_accessor.templates.h b/include/deal.II/dofs/dof_accessor.templates.h index 51ac5fd2fb..c89bbf66e8 100644 --- a/include/deal.II/dofs/dof_accessor.templates.h +++ b/include/deal.II/dofs/dof_accessor.templates.h @@ -2140,8 +2140,7 @@ namespace internal const DoFCellAccessor &accessor) { if (accessor.dof_handler->hp_capability_enabled == false) - return 0; // ::DoFHandler only supports a single active FE with index - // zero + return DoFHandler::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::default_fe_index)); return; } @@ -2199,10 +2197,7 @@ namespace internal const DoFCellAccessor &accessor) { if (accessor.dof_handler->hp_capability_enabled == false) - return DoFHandler:: - default_fe_index; // ::DoFHandler only supports - // a single active FE with - // index zero + return DoFHandler::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::default_fe_index)); return; } @@ -2265,8 +2259,7 @@ namespace internal const DoFCellAccessor &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 &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,