From 8385b725ff40b127a20f833d06834f3bee4124ca Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 25 Jan 2010 09:33:23 +0000 Subject: [PATCH] tests/petsc: more cleanup git-svn-id: https://svn.dealii.org/trunk@20440 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/petsc/deal_solver_01.cc | 2 +- tests/petsc/deal_solver_01/cmp/generic | 4 ++-- tests/petsc/deal_solver_02.cc | 2 +- tests/petsc/deal_solver_02/cmp/generic | 4 ++-- tests/petsc/solver_01.cc | 4 ++-- tests/petsc/solver_02.cc | 4 ++-- tests/petsc/solver_03.cc | 4 ++-- tests/petsc/solver_04.cc | 4 ++-- tests/petsc/solver_05.cc | 4 ++-- tests/petsc/solver_06.cc | 4 ++-- tests/petsc/solver_07.cc | 4 ++-- tests/petsc/solver_08.cc | 4 ++-- tests/petsc/solver_09.cc | 4 ++-- tests/petsc/solver_10.cc | 4 ++-- tests/petsc/solver_11.cc | 4 ++-- 15 files changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/petsc/deal_solver_01.cc b/tests/petsc/deal_solver_01.cc index 6b93160119..350818cddd 100644 --- a/tests/petsc/deal_solver_01.cc +++ b/tests/petsc/deal_solver_01.cc @@ -60,8 +60,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("deal_solver_01/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/deal_solver_01/cmp/generic b/tests/petsc/deal_solver_01/cmp/generic index 6eacb4aa59..e5e3067846 100644 --- a/tests/petsc/deal_solver_01/cmp/generic +++ b/tests/petsc/deal_solver_01/cmp/generic @@ -1,6 +1,6 @@ DEAL::Size 32 Unknowns 961 DEAL::Solver type: N6dealii8SolverCGINS_13PETScWrappers6VectorEEE -DEAL:cg::Starting value 31.0000 -DEAL:cg::Convergence step 43 value 0.000818932 +DEAL:cg::Starting value 31.00 +DEAL:cg::Convergence step 43 value 0.0008189 DEAL::Solver stopped after 43 iterations diff --git a/tests/petsc/deal_solver_02.cc b/tests/petsc/deal_solver_02.cc index 52d42a5120..55959c412b 100644 --- a/tests/petsc/deal_solver_02.cc +++ b/tests/petsc/deal_solver_02.cc @@ -62,8 +62,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("deal_solver_02/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/deal_solver_02/cmp/generic b/tests/petsc/deal_solver_02/cmp/generic index 26caa7600b..4cbd6cc5d7 100644 --- a/tests/petsc/deal_solver_02/cmp/generic +++ b/tests/petsc/deal_solver_02/cmp/generic @@ -1,6 +1,6 @@ DEAL::Size 32 Unknowns 961 DEAL::Solver type: N6dealii14SolverBicgstabINS_13PETScWrappers6VectorEEE -DEAL:Bicgstab::Starting value 31.0000 -DEAL:Bicgstab::Convergence step 29 value 0.000873501 +DEAL:Bicgstab::Starting value 31.00 +DEAL:Bicgstab::Convergence step 29 value 0.0008735 DEAL::Solver stopped after 29 iterations diff --git a/tests/petsc/solver_01.cc b/tests/petsc/solver_01.cc index c3f763204f..4607a57cbb 100644 --- a/tests/petsc/solver_01.cc +++ b/tests/petsc/solver_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -57,8 +57,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_01/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_02.cc b/tests/petsc/solver_02.cc index 3bf12f60f1..131da7150f 100644 --- a/tests/petsc/solver_02.cc +++ b/tests/petsc/solver_02.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -56,8 +56,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_02/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_03.cc b/tests/petsc/solver_03.cc index 95d5f57977..fc7d6ebee5 100644 --- a/tests/petsc/solver_03.cc +++ b/tests/petsc/solver_03.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_03/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_04.cc b/tests/petsc/solver_04.cc index 36c63d2e3a..7ac66b800f 100644 --- a/tests/petsc/solver_04.cc +++ b/tests/petsc/solver_04.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_04/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_05.cc b/tests/petsc/solver_05.cc index 81bab513b5..c767e2b906 100644 --- a/tests/petsc/solver_05.cc +++ b/tests/petsc/solver_05.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_05/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_06.cc b/tests/petsc/solver_06.cc index 05ebfea704..357eb5a63d 100644 --- a/tests/petsc/solver_06.cc +++ b/tests/petsc/solver_06.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_06/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_07.cc b/tests/petsc/solver_07.cc index b1326285c6..a009a50725 100644 --- a/tests/petsc/solver_07.cc +++ b/tests/petsc/solver_07.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_07/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_08.cc b/tests/petsc/solver_08.cc index 928df89e0d..68c84b03e2 100644 --- a/tests/petsc/solver_08.cc +++ b/tests/petsc/solver_08.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_08/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_09.cc b/tests/petsc/solver_09.cc index b920798e00..e547c76bc6 100644 --- a/tests/petsc/solver_09.cc +++ b/tests/petsc/solver_09.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -59,8 +59,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_09/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_10.cc b/tests/petsc/solver_10.cc index c8a63ae646..26e283826a 100644 --- a/tests/petsc/solver_10.cc +++ b/tests/petsc/solver_10.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -55,8 +55,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_10/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/petsc/solver_11.cc b/tests/petsc/solver_11.cc index a807d30808..8ecee4483f 100644 --- a/tests/petsc/solver_11.cc +++ b/tests/petsc/solver_11.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004, 2005 by the deal.II authors +// Copyright (C) 2004, 2005, 2010 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -56,8 +56,8 @@ check_solve( SOLVER& solver, const MATRIX& A, int main(int argc, char **argv) { std::ofstream logfile("solver_11/output"); - logfile.precision(4); deallog.attach(logfile); + deallog << std::setprecision(4); deallog.depth_console(0); deallog.threshold_double(1.e-10); -- 2.39.5