From ca3fc6f3eb63f4839299c13cfe033d08d1c5e0ab Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 20 May 2025 16:24:21 +0200 Subject: [PATCH] Attempt to fix warning --- source/dofs/dof_accessor_set.cc | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/source/dofs/dof_accessor_set.cc b/source/dofs/dof_accessor_set.cc index a10660f793..5349db7098 100644 --- a/source/dofs/dof_accessor_set.cc +++ b/source/dofs/dof_accessor_set.cc @@ -103,23 +103,6 @@ namespace internal } #endif - namespace - { - // Test whether a vector is a deal.II vector - template - constexpr bool is_dealii_vector = - std::is_same_v> || - std::is_same_v> || - std::is_same_v> || - std::is_same_v>; - } // namespace - /** * Helper function that sets the values on a cell, but also checks if the @@ -140,7 +123,15 @@ namespace internal if constexpr (running_in_debug_mode()) { - if (perform_check && is_dealii_vector) + using VectorNumber = typename OutputVector::value_type; + constexpr bool is_dealii_vector = + std::is_same_v> || + std::is_same_v> || + std::is_same_v> || + std::is_same_v>; + if (perform_check && is_dealii_vector) { const bool old_ghost_state = values.has_ghost_elements(); set_ghost_state(values, true); -- 2.39.5