From: bangerth Date: Tue, 8 Jan 2013 19:36:34 +0000 (+0000) Subject: Fix the other places with pow(...) as well. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e28f260535de587ea081f6e9c46633d6578f6e3;p=dealii-svn.git Fix the other places with pow(...) as well. git-svn-id: https://svn.dealii.org/trunk@27978 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/tensor_product_polynomials_const.cc b/deal.II/source/base/tensor_product_polynomials_const.cc index d85de23467..7be23144ff 100644 --- a/deal.II/source/base/tensor_product_polynomials_const.cc +++ b/deal.II/source/base/tensor_product_polynomials_const.cc @@ -119,7 +119,7 @@ Tensor<1,dim> TensorProductPolynomialsConst::compute_grad (const unsigned int i, const Point &p) const { - const unsigned int max_indices=pow(polynomials.size(),dim); + const unsigned int max_indices = Utilities::fixed_power(polynomials.size()); Assert (i<=max_indices, ExcInternalError()); Tensor<1,dim> grad; @@ -158,7 +158,7 @@ Tensor<2,dim> TensorProductPolynomialsConst::compute_grad_grad (const unsigned int i, const Point &p) const { - const unsigned int max_indices=pow(polynomials.size(),dim); + const unsigned int max_indices = Utilities::fixed_power(polynomials.size()); Assert (i<=max_indices, ExcInternalError()); Tensor<2,dim> grad_grad;