]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some warnings in tests 6936/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 19 Jul 2018 17:18:19 +0000 (19:18 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Thu, 19 Jul 2018 17:18:55 +0000 (19:18 +0200)
tests/scalapack/scalapack_06.cc
tests/scalapack/scalapack_06b.cc
tests/scalapack/scalapack_15.cc

index a01ab12a14f05a1d311a1c373d4eb8fe100afd2e..78aee5295475830182ae86985111c4ff52d012ec 100644 (file)
@@ -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];
   }
 
index 8f303ca47307e4e7fee095f89607fec47adf8d87..707aecfeeba736501c8d271e9c2a72b0c5ff4866 100644 (file)
@@ -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];
   }
 
index 69848882e5b67ab64b365b932eae7d5ebd08142b..e29fc69cbbe1a1998c08019bb5f699e0eb17e57c 100644 (file)
@@ -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];
   }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.