From c0ef01f28ba576c450fcb5c156c44779ae767521 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 2 May 2020 16:42:46 -0600 Subject: [PATCH] Fix a test by using the stream output precision. --- tests/fe/fe_nedelec_singularity_02.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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; } { -- 2.39.5