From: Wolfgang Bangerth Date: Sat, 2 May 2020 22:42:46 +0000 (-0600) Subject: Fix a test by using the stream output precision. X-Git-Tag: v9.2.0-rc1~140^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10019%2Fhead;p=dealii.git Fix a test by using the stream output precision. --- diff --git a/tests/fe/fe_nedelec_singularity_02.cc b/tests/fe/fe_nedelec_singularity_02.cc index 107a153f2e..d7d1cc86be 100644 --- a/tests/fe/fe_nedelec_singularity_02.cc +++ b/tests/fe/fe_nedelec_singularity_02.cc @@ -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; } {