]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid deprecated fixed_int_power 7085/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 20 Aug 2018 10:51:46 +0000 (12:51 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 20 Aug 2018 10:51:46 +0000 (12:51 +0200)
include/deal.II/matrix_free/operators.h

index cd331f38fc19561a68ac1fd0f9b58c3b222ff3db..72fc4121d3fc69fea82b4ac8710573de64d1690b 100644 (file)
@@ -1046,8 +1046,7 @@ namespace MatrixFreeOperators
                                      const VectorizedArray<Number> *in_array,
                                      VectorizedArray<Number> *out_array) const
   {
-    const unsigned int dofs_per_cell =
-      Utilities::fixed_int_power<fe_degree + 1, dim>::value;
+    constexpr unsigned int dofs_per_cell = Utilities::pow(fe_degree + 1, dim);
     internal::EvaluatorTensorProduct<internal::evaluate_evenodd,
                                      dim,
                                      fe_degree + 1,

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.