]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a test by using the stream output precision. 10019/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 2 May 2020 22:42:46 +0000 (16:42 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 2 May 2020 22:42:46 +0000 (16:42 -0600)
tests/fe/fe_nedelec_singularity_02.cc

index 107a153f2e3acb9314f9acc36a9e46bc7e7f8d2a..d7d1cc86bebdf08db87c6dd53b80dbaf401e407c 100644 (file)
@@ -585,11 +585,19 @@ namespace nedelec_singularity
       // approach to send solution_a and solution_b to all the processes.
       Utilities::MPI::sum(solution_a, mpi_communicator, solution_a);
       Utilities::MPI::sum(solution_b, mpi_communicator, solution_b);
-      deallog << " Solution(point_a) : " << solution_a << std::endl;
-      deallog << " Solution(point_b) : " << solution_b << std::endl;
+      deallog << " Solution(point_a) : ";
+      for (const auto v : solution_a)
+        deallog << v << ' ';
+      deallog << std::endl << std::endl;
+      deallog << " Solution(point_b) : ";
+      for (const auto v : solution_b)
+        deallog << v << ' ';
+      deallog << std::endl << std::endl;
       // Vector does not provide operator-
-      deallog << " Solution(point_b) - solution (point_a): "
-              << (solution_b -= solution_a) << std::endl;
+      deallog << " Solution(point_b) - solution (point_a): ";
+      for (const auto v : (solution_b -= solution_a))
+        deallog << v << ' ';
+      deallog << std::endl << std::endl;
     }
 
     {

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.