From cf1bc1f51cc89ed3f643bcf200027b91465115b1 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 22 Jun 2020 13:27:18 +0000 Subject: [PATCH] Replace macro with constexpr variable --- include/deal.II/matrix_free/cuda_hanging_nodes_internal.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h b/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h index 294d74a9bf..01a3ea6970 100644 --- a/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h +++ b/include/deal.II/matrix_free/cuda_hanging_nodes_internal.h @@ -20,6 +20,7 @@ #ifdef DEAL_II_COMPILER_CUDA_AWARE +# include # include # include @@ -103,10 +104,8 @@ namespace CUDAWrappers namespace internal { - // TODO: use a template parameter instead of a macro -# define DEAL_II_MAX_ELEM_DEGREE 10 - __constant__ double constraint_weights[(DEAL_II_MAX_ELEM_DEGREE + 1) * - (DEAL_II_MAX_ELEM_DEGREE + 1)]; + __constant__ double + constraint_weights[(mf_max_elem_degree + 1) * (mf_max_elem_degree + 1)]; // Here is the system for how we store constraint types in a binary mask. // This is not a complete contradiction-free system, i.e., there are -- 2.39.5