]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark some more things as constexpr. 5919/head
authorDavid Wells <wellsd2@rpi.edu>
Fri, 23 Feb 2018 20:06:57 +0000 (15:06 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 24 Feb 2018 19:58:57 +0000 (14:58 -0500)
include/deal.II/matrix_free/cuda_fe_evaluation.h
include/deal.II/matrix_free/tensor_product_kernels.h

index 27bfb8d513ea3d2c21d43522118b376c464274bf..5cfbd162acb45b9694b171ea12d8fd6360d1522f 100644 (file)
@@ -74,8 +74,8 @@ namespace CUDAWrappers
     typedef Number                                  value_type;
     typedef Tensor<1,dim,Number>                    gradient_type;
     typedef typename MatrixFree<dim, Number>::Data  data_type;
-    static const unsigned int dimension    =        dim;
-    static const unsigned int n_components =        n_components_;
+    static constexpr unsigned int dimension       = dim;
+    static constexpr unsigned int n_components    = n_components_;
     static constexpr unsigned int n_q_points      = Utilities::pow(n_q_points_1d, dim);
     static constexpr unsigned int tensor_dofs_per_cell = Utilities::pow(fe_degree + 1, dim);
 
index cae328832f0e3b8f779d9129bcbad4400147d35a..62dc19dc51b36f400391096ecf4b1efdda432035 100644 (file)
@@ -487,8 +487,8 @@ namespace internal
   template <int dim, typename Number, typename Number2>
   struct EvaluatorTensorProduct<evaluate_general,dim,0,0,Number,Number2>
   {
-    static const unsigned int n_rows_of_product = numbers::invalid_unsigned_int;
-    static const unsigned int n_columns_of_product = numbers::invalid_unsigned_int;
+    static constexpr unsigned int n_rows_of_product = numbers::invalid_unsigned_int;
+    static constexpr unsigned int n_columns_of_product = numbers::invalid_unsigned_int;
 
     /**
      * Empty constructor. Does nothing. Be careful when using 'values' and

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.