From 496e88860134e434af39ee8fda3f7f48c54a48d3 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Thu, 22 May 2014 21:39:49 +0000 Subject: [PATCH] make output to deallog work git-svn-id: https://svn.dealii.org/trunk@32969 0785d39b-7218-0410-832d-ea1e28bc413d --- .../deal.II/algorithms/operator.templates.h | 3 +- tests/algorithms/newton_01.output | 35 +++++++++++++++++++ tests/algorithms/newton_01_compat.output | 35 +++++++++++++++++++ 3 files changed, 72 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/algorithms/operator.templates.h b/deal.II/include/deal.II/algorithms/operator.templates.h index 0824616807..db13a00094 100644 --- a/deal.II/include/deal.II/algorithms/operator.templates.h +++ b/deal.II/include/deal.II/algorithms/operator.templates.h @@ -131,8 +131,9 @@ namespace Algorithms { const VECTOR *v = vectors.try_read_ptr(i); if (v == 0) continue; + deallog << vectors.name(i); for (unsigned int j=0; jsize(); ++j) - (*os) << ' ' << (*v)(j); + deallog << ' ' << (*v)(j); deallog << std::endl; } deallog << std::endl; diff --git a/tests/algorithms/newton_01.output b/tests/algorithms/newton_01.output index 38c1c23723..48e97a1986 100644 --- a/tests/algorithms/newton_01.output +++ b/tests/algorithms/newton_01.output @@ -1,12 +1,47 @@ DEAL:Newton::Check 0 98.0000 DEAL:Newton::Starting value 98.0000 +DEAL:Newton::Step 1 +DEAL:Newton::solution 10.0000 +DEAL:Newton::update 4.90000 +DEAL:Newton::residual 98.0000 +DEAL:Newton:: DEAL:Newton::Check 1 24.0100 +DEAL:Newton::Step 2 +DEAL:Newton::solution 5.10000 +DEAL:Newton::update 2.35392 +DEAL:Newton::residual 24.0100 +DEAL:Newton:: DEAL:Newton::Check 2 5.54095 +DEAL:Newton::Step 3 +DEAL:Newton::solution 2.74608 +DEAL:Newton::update 1.00888 +DEAL:Newton::residual 5.54095 +DEAL:Newton:: DEAL:Newton::Check 3 1.01785 +DEAL:Newton::Step 4 +DEAL:Newton::solution 1.73719 +DEAL:Newton::update 0.292957 +DEAL:Newton::residual 1.01785 +DEAL:Newton:: DEAL:Newton::Check 4 0.0858237 +DEAL:Newton::Step 5 +DEAL:Newton::solution 1.44424 +DEAL:Newton::update 0.0297124 +DEAL:Newton::residual 0.0858237 +DEAL:Newton:: DEAL:Newton::Check 5 0.000882829 +DEAL:Newton::Step 6 +DEAL:Newton::solution 1.41453 +DEAL:Newton::update 0.000312058 +DEAL:Newton::residual 0.000882829 +DEAL:Newton:: DEAL:Newton::Check 6 9.73804e-08 +DEAL:Newton::Step 7 +DEAL:Newton::solution 1.41421 +DEAL:Newton::update 3.44292e-08 +DEAL:Newton::residual 9.73804e-08 +DEAL:Newton:: DEAL:Newton::Check 7 0 DEAL:Newton::Convergence step 7 value 0 DEAL:: square root 1.41421 diff --git a/tests/algorithms/newton_01_compat.output b/tests/algorithms/newton_01_compat.output index 38c1c23723..48e97a1986 100644 --- a/tests/algorithms/newton_01_compat.output +++ b/tests/algorithms/newton_01_compat.output @@ -1,12 +1,47 @@ DEAL:Newton::Check 0 98.0000 DEAL:Newton::Starting value 98.0000 +DEAL:Newton::Step 1 +DEAL:Newton::solution 10.0000 +DEAL:Newton::update 4.90000 +DEAL:Newton::residual 98.0000 +DEAL:Newton:: DEAL:Newton::Check 1 24.0100 +DEAL:Newton::Step 2 +DEAL:Newton::solution 5.10000 +DEAL:Newton::update 2.35392 +DEAL:Newton::residual 24.0100 +DEAL:Newton:: DEAL:Newton::Check 2 5.54095 +DEAL:Newton::Step 3 +DEAL:Newton::solution 2.74608 +DEAL:Newton::update 1.00888 +DEAL:Newton::residual 5.54095 +DEAL:Newton:: DEAL:Newton::Check 3 1.01785 +DEAL:Newton::Step 4 +DEAL:Newton::solution 1.73719 +DEAL:Newton::update 0.292957 +DEAL:Newton::residual 1.01785 +DEAL:Newton:: DEAL:Newton::Check 4 0.0858237 +DEAL:Newton::Step 5 +DEAL:Newton::solution 1.44424 +DEAL:Newton::update 0.0297124 +DEAL:Newton::residual 0.0858237 +DEAL:Newton:: DEAL:Newton::Check 5 0.000882829 +DEAL:Newton::Step 6 +DEAL:Newton::solution 1.41453 +DEAL:Newton::update 0.000312058 +DEAL:Newton::residual 0.000882829 +DEAL:Newton:: DEAL:Newton::Check 6 9.73804e-08 +DEAL:Newton::Step 7 +DEAL:Newton::solution 1.41421 +DEAL:Newton::update 3.44292e-08 +DEAL:Newton::residual 9.73804e-08 +DEAL:Newton:: DEAL:Newton::Check 7 0 DEAL:Newton::Convergence step 7 value 0 DEAL:: square root 1.41421 -- 2.39.5