From: Wolfgang Bangerth Date: Tue, 5 Jun 2018 23:47:37 +0000 (-0600) Subject: Provide a more readable indentation. X-Git-Tag: v9.1.0-rc1~1075^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a674ab94f4393a013283e84c62f0004c7a89842e;p=dealii.git Provide a more readable indentation. --- diff --git a/include/deal.II/matrix_free/cuda_matrix_free.h b/include/deal.II/matrix_free/cuda_matrix_free.h index 302520e340..f114cf12a1 100644 --- a/include/deal.II/matrix_free/cuda_matrix_free.h +++ b/include/deal.II/matrix_free/cuda_matrix_free.h @@ -307,17 +307,21 @@ namespace CUDAWrappers // This function determines the number of cells per block, possibly at compile - // time + // time (by virtue of being 'constexpr') // TODO this function should be rewritten using meta-programming __host__ __device__ constexpr unsigned int cells_per_block_shmem(int dim, int fe_degree) { - return dim == 2 ? - (fe_degree == 1 ? - 32 : - fe_degree == 2 ? 8 : - fe_degree == 3 ? 4 : fe_degree == 4 ? 4 : 1) : - dim == 3 ? (fe_degree == 1 ? 8 : fe_degree == 2 ? 2 : 1) : 1; + /* clang-format off */ + return dim==2 ? (fe_degree==1 ? 32 : + fe_degree==2 ? 8 : + fe_degree==3 ? 4 : + fe_degree==4 ? 4 : + 1) : + dim==3 ? (fe_degree==1 ? 8 : + fe_degree==2 ? 2 : + 1) : 1; + /* clang-format on */ } } // namespace CUDAWrappers