]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid a compiler error with gcc 4.1.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jan 2013 19:25:25 +0000 (19:25 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 8 Jan 2013 19:25:25 +0000 (19:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@27976 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/tensor_product_polynomials_const.cc

index 27ca3417a3270c012cd9a71132a000d0e4727a7e..0f67c765ef32966bd7c0ce36fed5f86bb1a598c5 100644 (file)
@@ -87,7 +87,7 @@ double
 TensorProductPolynomialsConst<dim>::compute_value (const unsigned int i,
                                                    const Point<dim> &p) const
 {
-  unsigned int max_indices=pow(polynomials.size(),dim);
+  unsigned int max_indices = Utilities::fixed_power<dim>(polynomials.size());
 
   Assert (i<=max_indices, ExcInternalError());
   if (i<max_indices)

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.