]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Portable MatrixFree: use if constexpr for hanging nodes implementation 17530/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 14 Aug 2024 17:46:32 +0000 (11:46 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 14 Aug 2024 17:46:45 +0000 (11:46 -0600)
include/deal.II/matrix_free/portable_hanging_nodes_internal.h

index 74ea7d81570c6a384aa1b25950814f3b7161242b..3139473b3ff856d9c3b4c698fcd8e40544ae2653 100644 (file)
@@ -425,7 +425,7 @@ namespace Portable
                      scratch_memory_space,
                    Kokkos::MemoryTraits<Kokkos::Unmanaged>> values)
     {
-      if (dim == 2)
+      if constexpr (dim == 2)
         {
           interpolate_boundary_2d<fe_degree, 0, transpose>(team_member,
                                                            constraint_weights,
@@ -437,7 +437,7 @@ namespace Portable
                                                            constraint_mask,
                                                            values);
         }
-      else if (dim == 3)
+      else if constexpr (dim == 3)
         {
           // Interpolate y and z faces (x-direction)
           interpolate_boundary_3d<fe_degree, 0, transpose>(team_member,

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.