From 7e28f260535de587ea081f6e9c46633d6578f6e3 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 8 Jan 2013 19:36:34 +0000 Subject: [PATCH] Fix the other places with pow(...) as well. git-svn-id: https://svn.dealii.org/trunk@27978 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/tensor_product_polynomials_const.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5