]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark variables as constexpr 6749/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 13 Jun 2018 08:13:03 +0000 (10:13 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 13 Jun 2018 08:13:03 +0000 (10:13 +0200)
include/deal.II/matrix_free/fe_evaluation.h

index a4762c56babcce60293c72e714e5712052ff65b3..bd7152da8cbf60b195ea5792c9f757a8cd75a197 100644 (file)
@@ -6924,7 +6924,7 @@ FEFaceEvaluation<dim, fe_degree, n_q_points_1d, n_components, Number>::evaluate(
   if (!(evaluate_values + evaluate_gradients))
     return;
 
-  const unsigned int static_dofs_per_face =
+  constexpr unsigned int static_dofs_per_face =
     fe_degree > -1 ? Utilities::pow(fe_degree + 1, dim - 1) :
                      numbers::invalid_unsigned_int;
   const unsigned int dofs_per_face =
@@ -7043,7 +7043,7 @@ FEFaceEvaluation<dim, fe_degree, n_q_points_1d, n_components, Number>::
   if (this->face_orientation)
     adjust_for_face_orientation(true, integrate_values, integrate_gradients);
 
-  const unsigned int static_dofs_per_face =
+  constexpr unsigned int static_dofs_per_face =
     fe_degree > -1 ? Utilities::pow(fe_degree + 1, dim - 1) :
                      numbers::invalid_unsigned_int;
   const unsigned int dofs_per_face =
@@ -7125,7 +7125,7 @@ FEFaceEvaluation<dim, fe_degree, n_q_points_1d, n_components_, Number>::
 {
   const unsigned int side = this->face_no % 2;
 
-  const unsigned int static_dofs_per_face =
+  constexpr unsigned int static_dofs_per_face =
     fe_degree > -1 ? Utilities::pow(fe_degree + 1, dim - 1) :
                      numbers::invalid_unsigned_int;
   const unsigned int dofs_per_face =

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.