From 5336f5a5f7d30fb3367dff535f868bec62ffcfbf Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 19 Jul 2018 19:18:19 +0200 Subject: [PATCH] Fix some warnings in tests --- tests/scalapack/scalapack_06.cc | 4 ++-- tests/scalapack/scalapack_06b.cc | 4 ++-- tests/scalapack/scalapack_15.cc | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/scalapack/scalapack_06.cc b/tests/scalapack/scalapack_06.cc index a01ab12a14..78aee52954 100644 --- a/tests/scalapack/scalapack_06.cc +++ b/tests/scalapack/scalapack_06.cc @@ -117,8 +117,8 @@ test(const unsigned int size, &info); AssertThrow(info == 0, LAPACKSupport::ExcErrorCode("syev", info)); - for (int i = 0; i < max_n_eigenvalues; ++i) - for (int j = 0; j < size; ++j) + for (unsigned int i = 0; i < max_n_eigenvalues; ++i) + for (unsigned int j = 0; j < size; ++j) s_eigenvectors_[i][j] = lapack_A[(size - 1 - i) * size + j]; } diff --git a/tests/scalapack/scalapack_06b.cc b/tests/scalapack/scalapack_06b.cc index 8f303ca473..707aecfeeb 100644 --- a/tests/scalapack/scalapack_06b.cc +++ b/tests/scalapack/scalapack_06b.cc @@ -118,8 +118,8 @@ test(const unsigned int size, &info); AssertThrow(info == 0, LAPACKSupport::ExcErrorCode("syev", info)); - for (int i = 0; i < max_n_eigenvalues; ++i) - for (int j = 0; j < size; ++j) + for (unsigned int i = 0; i < max_n_eigenvalues; ++i) + for (unsigned int j = 0; j < size; ++j) s_eigenvectors_[i][j] = lapack_A[(size - 1 - i) * size + j]; } diff --git a/tests/scalapack/scalapack_15.cc b/tests/scalapack/scalapack_15.cc index 69848882e5..e29fc69cbb 100644 --- a/tests/scalapack/scalapack_15.cc +++ b/tests/scalapack/scalapack_15.cc @@ -156,8 +156,8 @@ test(const unsigned int size, &info); AssertThrow(info == 0, LAPACKSupport::ExcErrorCode("syevr", info)); - for (int i = 0; i < max_n_eigenvalues; ++i) - for (int j = 0; j < size; ++j) + for (unsigned int i = 0; i < max_n_eigenvalues; ++i) + for (unsigned int j = 0; j < size; ++j) s_eigenvectors_[i][j] = eigenvectors[(size - 1 - i) * size + j]; } -- 2.39.5