From 244be61b91ac81e38d6303857e6124d03d433a1c Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 20 Jan 2016 17:55:19 +0100 Subject: [PATCH] Fix compiler warning --- source/multigrid/mg_transfer_matrix_free.cc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/multigrid/mg_transfer_matrix_free.cc b/source/multigrid/mg_transfer_matrix_free.cc index 8bb7c5992f..da97e205cd 100644 --- a/source/multigrid/mg_transfer_matrix_free.cc +++ b/source/multigrid/mg_transfer_matrix_free.cc @@ -719,19 +719,21 @@ namespace VectorizedArray *data) { Assert(degree > 0, ExcNotImplemented()); - const unsigned int loop_length = 2*degree+1; + const int loop_length = 2*degree+1; unsigned int degree_to_3 [loop_length]; degree_to_3[0] = 0; - for (unsigned int i=1; i2 ? loop_length : 1); ++k) - for (unsigned int j=0; j<(dim>1 ? loop_length : 1); ++j) + for (int k=0; k<(dim>2 ? loop_length : 1); ++k) + for (int j=0; j<(dim>1 ? loop_length : 1); ++j) { const unsigned int shift = 9*degree_to_3[k] + 3*degree_to_3[j]; data[0] *= weights[shift]; - for (unsigned int i=1; i