From: Wolfgang Bangerth Date: Wed, 18 Dec 2024 03:06:46 +0000 (-0700) Subject: Fix a place incorrectly using std::is_trivial. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1de6b0982143797335f3d854bdf3035df0b2be0;p=dealii.git Fix a place incorrectly using std::is_trivial. --- 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)); } }