]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test SCALAPACK with -Werror 7886/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 3 Apr 2019 03:04:16 +0000 (05:04 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 3 Apr 2019 03:43:46 +0000 (05:43 +0200)
14 files changed:
tests/scalapack/scalapack_06.cc
tests/scalapack/scalapack_06a.cc
tests/scalapack/scalapack_06b.cc
tests/scalapack/scalapack_06c.cc
tests/scalapack/scalapack_12_a.cc
tests/scalapack/scalapack_12_b.cc
tests/scalapack/scalapack_12_c.cc
tests/scalapack/scalapack_12_d.cc
tests/scalapack/scalapack_13_a.cc
tests/scalapack/scalapack_13_b.cc
tests/scalapack/scalapack_14_a.cc
tests/scalapack/scalapack_14_b.cc
tests/scalapack/scalapack_15.cc
tests/scalapack/scalapack_15_a.cc

index 78aee5295475830182ae86985111c4ff52d012ec..1c6a434b71f13b7d8d26ac5df5d2cd9e96a9644e 100644 (file)
@@ -104,7 +104,7 @@ test(const unsigned int size,
          &*work.begin(),
          &lwork,
          &info);
-    lwork = work[0];
+    lwork = static_cast<int>(work[0]);
     work.resize(lwork);
     syev(&jobz,
          &uplo,
index 39cf9f63f60de7acff828154223f170b07d6a21d..7584d7041c949c2a9909576daf9d3a23c5a70a75 100644 (file)
@@ -100,7 +100,7 @@ test(const unsigned int size,
          &*work.begin(),
          &lwork,
          &info);
-    lwork = work[0];
+    lwork = static_cast<int>(work[0]);
     work.resize(lwork);
     syev(&jobz,
          &uplo,
index 707aecfeeba736501c8d271e9c2a72b0c5ff4866..4d02c8399f4ea80ddb2abde09d58b04524562462 100644 (file)
@@ -105,7 +105,7 @@ test(const unsigned int size,
          &*work.begin(),
          &lwork,
          &info);
-    lwork = work[0];
+    lwork = static_cast<int>(work[0]);
     work.resize(lwork);
     syev(&jobz,
          &uplo,
index 37a376c74c895c45479e2642121cf8f423450747..d7c59d22fdda9025f7f2e98c662dca9f1273d880 100644 (file)
@@ -100,7 +100,7 @@ test(const unsigned int size,
          &*work.begin(),
          &lwork,
          &info);
-    lwork = work[0];
+    lwork = static_cast<int>(work[0]);
     work.resize(lwork);
     syev(&jobz,
          &uplo,
index 8955491b6ef493b7edf86641e688d89704427819..b89b755b45d28b28d75e09852a96ecbee2fef437 100644 (file)
@@ -44,8 +44,10 @@ test()
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
     std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
index 0f4cdb466cd74051d7f38b8f498145428e1e875e..be7843782aa2a8ebc6b4556c63a12e96e98aad2c 100644 (file)
@@ -45,8 +45,10 @@ test()
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
     std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
index 498a7ffc3817c30c48348a278a986cb3a513475e..71a6c7ed4938ee6fc645445bced64e3cee9e5e44 100644 (file)
@@ -45,8 +45,10 @@ test()
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
     std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
index 2f4f8e6d0866378706c7641007e70fed2fbfbc24..81202354e5884b88577a6cd8e3feae972822a605 100644 (file)
@@ -45,8 +45,10 @@ test()
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
     std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
index e3d55299bad4d03c1c436d42017a58d8a198140f..81c73d4809c1ce34612fccb0e1b5389cfd2c6d47 100644 (file)
@@ -44,8 +44,10 @@ test(const unsigned int block_size_i, const unsigned int block_size_j)
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
     std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
index 20fd3bd4bcf4e03e1e2fbb7e441e99e2a35066b6..5334bdbc7a02df6a59307a32bf3eddcfe65a7bb0 100644 (file)
@@ -44,8 +44,10 @@ test(const unsigned int block_size_i, const unsigned int block_size_j)
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
     std::make_shared<Utilities::MPI::ProcessGrid>(mpi_communicator,
index 81324ccf313e33f934ddf7654ca70513c39818b1..c34e3e1ebdd466b2ce7086be88c398ed909903f2 100644 (file)
@@ -45,8 +45,10 @@ test(const unsigned int block_size_i, const unsigned int block_size_j)
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   const std::vector<unsigned int>              sizes = {{400, 500}};
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
index e32f5c65382487b930e23dcf13a9a1f6c16d41a5..d79e17996aef05477424a9b0351d6914c3cd3832 100644 (file)
@@ -45,8 +45,10 @@ test(const unsigned int block_size_i, const unsigned int block_size_j)
   std::cout << std::setprecision(10);
   ConditionalOStream pcout(std::cout, (this_mpi_process == 0));
 
-  const unsigned int proc_rows    = std::floor(std::sqrt(n_mpi_processes));
-  const unsigned int proc_columns = std::floor(n_mpi_processes / proc_rows);
+  const auto proc_rows =
+    static_cast<unsigned int>(std::floor(std::sqrt(n_mpi_processes)));
+  const auto proc_columns =
+    static_cast<unsigned int>(std::floor(n_mpi_processes / proc_rows));
   // create 2d process grid
   const std::vector<unsigned int>              sizes = {{400, 500}};
   std::shared_ptr<Utilities::MPI::ProcessGrid> grid =
index e29fc69cbbe1a1998c08019bb5f699e0eb17e57c..1dd40e682b49f563c77040c5a01a30df4063c35a 100644 (file)
@@ -128,7 +128,7 @@ test(const unsigned int size,
           &liwork,
           &info);
 
-    lwork = work[0];
+    lwork = static_cast<int>(work[0]);
     work.resize(lwork);
     liwork = iwork[0];
     iwork.resize(liwork);
index 59bc9368c882f36513fe115cb18a77d26ff4908f..515be289b3901ba1ec7db93d768e8a087c70e174 100644 (file)
@@ -128,7 +128,7 @@ test(const unsigned int size,
           &liwork,
           &info);
 
-    lwork = work[0];
+    lwork = static_cast<int>(work[0]);
     work.resize(lwork);
     liwork = iwork[0];
     iwork.resize(liwork);

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.