]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some tests failing without LAPAPCK support and with -Werror 10258/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 18 May 2020 13:51:38 +0000 (13:51 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 18 May 2020 15:34:14 +0000 (11:34 -0400)
15 files changed:
tests/boost/point_adaptor_01.cc
tests/boost/rtree_02.cc
tests/cuda/precondition_03.with_trilinos=true.with_mpi=true.with_p4est=true.with_lapack=true.mpirun=1.output [moved from tests/cuda/precondition_03.with_trilinos=true.with_mpi=true.with_p4est=true.mpirun=1.output with 100% similarity]
tests/cuda/precondition_03.with_trilinos=true.with_mpi=true.with_p4est=true.with_lapack=true.mpirun=2.output [moved from tests/cuda/precondition_03.with_trilinos=true.with_mpi=true.with_p4est=true.mpirun=2.output with 100% similarity]
tests/cuda/vector_memory_02.debug.output [moved from tests/cuda/vector_memory_02.output with 100% similarity]
tests/dofs/dof_test.cc
tests/grid/grid_generator_open_torus.with_lapack=on.output [moved from tests/grid/grid_generator_open_torus.output with 100% similarity]
tests/grid/grid_test.cc
tests/grid/grid_tools_aspect_ratio.with_lapack=true.output [moved from tests/grid/grid_tools_aspect_ratio.output with 100% similarity]
tests/hp/laplace_mitchell2014_04_peak.with_trilinos=true.with_lapack=true.output [moved from tests/hp/laplace_mitchell2014_04_peak.with_trilinos=true.output with 100% similarity]
tests/mpi/no_flux_constraints_02.cc
tests/mpi/no_flux_constraints_03.cc
tests/mpi/step-37.with_lapack=true.with_p4est=true.mpirun=1.output [moved from tests/mpi/step-37.with_p4est=true.mpirun=1.output with 100% similarity]
tests/mpi/step-37.with_lapack=true.with_p4est=true.mpirun=7.output [moved from tests/mpi/step-37.with_p4est=true.mpirun=7.output with 100% similarity]
tests/mpi/step-39-block.with_trilinos=true.mpirun=3.with_p4est=true.with_lapack=true.output [moved from tests/mpi/step-39-block.with_trilinos=true.mpirun=3.with_p4est=true.output with 100% similarity]

index de2f407eca840428d6252b8622c6c24002dc9829..402969359d22ba3f2f954002355466219ef2305f 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <boost/geometry/algorithms/equals.hpp>
 #include <boost/geometry/algorithms/make.hpp>
+#include <boost/geometry/strategies/strategies.hpp>
 
 #include "../tests.h"
 
index 837f232cef47b34c64e7d19d49d7192716d83d85..3f73309c11afe854f6721e48971e990d68114379 100644 (file)
@@ -26,6 +26,8 @@
 
 #include <deal.II/numerics/rtree.h>
 
+#include <boost/geometry/algorithms/buffer.hpp>
+
 #include "../tests.h"
 
 namespace bgi = boost::geometry::index;
@@ -64,4 +66,4 @@ main()
     else
       deallog << "OK." << std::endl;
   }
-}
\ No newline at end of file
+}
index a5a6c417f64e7a15fd8a8958a0dfff7be77f9e29..7d5751e84d1fb2bfc9d7bf906f5072d713dd2ff1 100644 (file)
@@ -157,7 +157,7 @@ CurvedLine<dim>::get_new_point_on_quad(
   // z-value of the midpoint is either
   // 0 or 1, then the z-values of all
   // vertices of the quad is like that
-  if ((middle(2) == 0) || (middle(2) == 1))
+  if (dim == 3 && (middle(dim - 1) == 0) || (middle(dim - 1) == 1))
     return middle;
 
   double x = middle(0), y = middle(1);
index 64804314302416d8d4a6e83ae3be233c51c6d407..1506bab7ccba48944ad62b0f65f1e74ff3cf3f60 100644 (file)
@@ -133,7 +133,7 @@ CurvedLine<dim>::get_new_point_on_quad(
   // z-value of the midpoint is either
   // 0 or 1, then the z-values of all
   // vertices of the quad is like that
-  if ((middle(2) == 0) || (middle(2) == 1))
+  if (dim == 3 && (middle(dim - 1) == 0) || (middle(dim - 1) == 1))
     return middle;
 
   double x = middle(0), y = middle(1);
index 843204a5a4ff7bd153c584c39de7106c53b56be6..c7fb6d73844837c3e13da79abfc3579c22dfa785 100644 (file)
@@ -139,7 +139,7 @@ test()
     {
       // sort and merge the constraint matrices on proc 0, generate a checksum
       // and output that into the deallog
-      system(
+      int return_value = system(
         (std::string("cat ") + base + "cm_?.dot|sort -n|uniq >" + base + "cm")
           .c_str());
       {
@@ -150,6 +150,7 @@ test()
         deallog << "checksum: " << checksum(str.begin(), str.end())
                 << std::endl;
       }
+      (void)return_value;
       // delete the file created by processor 0
       std::remove((base + "cm").c_str());
     }
index 10d6d5c37dcaef7376727d9f50301dd3cc0bc100..1ce610bcc2e48bd3bdd9dff6bb211726fe82bae5 100644 (file)
@@ -113,9 +113,9 @@ test()
     {
       // sort and merge the constraint matrices on proc 0, generate a checksum
       // and output that into the deallog
-      system((std::string("cat ") + base + "cm_*.dot | sort -n | uniq > " +
-              base + "cm")
-               .c_str());
+      int return_value = system((std::string("cat ") + base +
+                                 "cm_*.dot | sort -n | uniq > " + base + "cm")
+                                  .c_str());
       {
         std::ifstream     file((base + "cm").c_str());
         std::stringstream ss;
@@ -124,6 +124,7 @@ test()
         deallog << "checksum: " << checksum(str.begin(), str.end())
                 << std::endl;
       }
+      (void)return_value;
       // delete the file created by processor 0
       std::remove((base + "cm").c_str());
     }

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.