]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FE_Q_Base: clean up an assertion.
authorDavid Wells <drwells@email.unc.edu>
Tue, 9 Apr 2024 23:45:04 +0000 (19:45 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sat, 13 Apr 2024 11:44:58 +0000 (07:44 -0400)
source/fe/fe_q_base.cc

index 195907161878783a5f3b2c57e12b4593f9c698e2..4e05d5396dd6e7471d47fb99dff9ecb4050d1e94 100644 (file)
@@ -1662,9 +1662,7 @@ FE_Q_Base<dim, spacedim>::has_support_on_face(
       const unsigned int quad_index =
         (shape_index - this->get_first_quad_index(0)) /
         this->n_dofs_per_quad(face_index); // this won't work
-      Assert(static_cast<signed int>(quad_index) <
-               static_cast<signed int>(GeometryInfo<dim>::quads_per_cell),
-             ExcInternalError());
+      AssertIndexRange(quad_index, GeometryInfo<dim>::quads_per_cell);
 
       // in 2d, cell bubble are zero on all faces. but we have treated this
       // case above already

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.