TensorProductPolynomialsConst<dim>::compute_value (const unsigned int i,
const Point<dim> &p) const
{
- unsigned int max_indices = Utilities::fixed_power<dim>(polynomials.size());
+ const unsigned int max_indices = Utilities::fixed_power<dim>(polynomials.size());
Assert (i<=max_indices, ExcInternalError());
if (i<max_indices)
TensorProductPolynomialsConst<dim>::compute_grad (const unsigned int i,
const Point<dim> &p) const
{
- unsigned int max_indices=pow(polynomials.size(),dim);
+ const unsigned int max_indices=pow(polynomials.size(),dim);
Assert (i<=max_indices, ExcInternalError());
Tensor<1,dim> grad;
TensorProductPolynomialsConst<dim>::compute_grad_grad (const unsigned int i,
const Point<dim> &p) const
{
- unsigned int max_indices=pow(polynomials.size(),dim);
+ const unsigned int max_indices=pow(polynomials.size(),dim);
Assert (i<=max_indices, ExcInternalError());
Tensor<2,dim> grad_grad;