From: Timo Heister Date: Mon, 27 Jul 2015 21:10:15 +0000 (-0400) Subject: fix out of bounds access X-Git-Tag: v8.4.0-rc2~706^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c1f1f44756e5daa030ff65ce14fdda124d2f8e;p=dealii.git fix out of bounds access --- diff --git a/source/base/tensor_product_polynomials.cc b/source/base/tensor_product_polynomials.cc index 61423c94bb..aa8ce7230c 100644 --- a/source/base/tensor_product_polynomials.cc +++ b/source/base/tensor_product_polynomials.cc @@ -357,13 +357,19 @@ AnisotropicPolynomials:: compute_index (const unsigned int i, unsigned int (&indices)[dim]) const { +#ifdef DEBUG unsigned int n_poly = 1; for (unsigned int d=0; d