]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Made return statement easier to read. 16000/head
authorMarc Fehling <mafehling.git@gmail.com>
Mon, 18 Sep 2023 16:14:57 +0000 (10:14 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Mon, 18 Sep 2023 16:29:43 +0000 (10:29 -0600)
Co-authored-by: Daniel Arndt <arndtd@ornl.gov>
source/fe/fe_hermite.cc

index cbeb83393842f2a18fc027142880d1e6303730b5..1030b6fb5cba2f24a5749e26d84e67125e2edfcf 100644 (file)
@@ -203,9 +203,11 @@ namespace internal
   hermite_face_lexicographic_to_hierarchic_numbering(
     const unsigned int regularity)
   {
-    return (dim > 1) ? hermite_lexicographic_to_hierarchic_numbering<
-                         std::max(dim - 1, 1)>(regularity) :
-                       std::vector<unsigned int>();
+    (void)regularity;
+    if constexpr (dim > 1)
+      return hermite_lexicographic_to_hierarchic_numbering<dim - 1>(regularity);
+    else
+      return std::vector<unsigned int>();
   }
 
 

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.