From d1de6b0982143797335f3d854bdf3035df0b2be0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 17 Dec 2024 20:06:46 -0700 Subject: [PATCH] Fix a place incorrectly using std::is_trivial. --- include/deal.II/base/partitioner.templates.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/include/deal.II/base/partitioner.templates.h b/include/deal.II/base/partitioner.templates.h index 1456185e43..e582618649 100644 --- a/include/deal.II/base/partitioner.templates.h +++ b/include/deal.II/base/partitioner.templates.h @@ -777,21 +777,14 @@ namespace Utilities Kokkos::deep_copy( Kokkos::View( ghost_array.data(), n_ghost_indices()), - 0); + Number(0)); } else # endif { - if constexpr (std::is_trivial_v) - { - std::memset(ghost_array.data(), - 0, - sizeof(Number) * n_ghost_indices()); - } - else - std::fill(ghost_array.data(), - ghost_array.data() + n_ghost_indices(), - 0); + std::fill(ghost_array.data(), + ghost_array.data() + n_ghost_indices(), + Number(0)); } } -- 2.39.5