From: Daniel Arndt Date: Wed, 14 Aug 2024 17:46:32 +0000 (-0600) Subject: Portable MatrixFree: use if constexpr for hanging nodes implementation X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17530%2Fhead;p=dealii.git Portable MatrixFree: use if constexpr for hanging nodes implementation --- diff --git a/include/deal.II/matrix_free/portable_hanging_nodes_internal.h b/include/deal.II/matrix_free/portable_hanging_nodes_internal.h index 74ea7d8157..3139473b3f 100644 --- a/include/deal.II/matrix_free/portable_hanging_nodes_internal.h +++ b/include/deal.II/matrix_free/portable_hanging_nodes_internal.h @@ -425,7 +425,7 @@ namespace Portable scratch_memory_space, Kokkos::MemoryTraits> values) { - if (dim == 2) + if constexpr (dim == 2) { interpolate_boundary_2d(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(team_member,