From d735b78c9ad225df4ef8342719bafc1999a258f0 Mon Sep 17 00:00:00 2001 From: kanschat Date: Thu, 24 Jan 2008 04:59:09 +0000 Subject: [PATCH] tests must be changed for new LogStream git-svn-id: https://svn.dealii.org/trunk@15661 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/lac/bicgstab_early.cc | 4 ++-- tests/lac/block_matrices.cc | 8 ++++---- tests/lac/block_minres.cc | 4 ++-- tests/lac/block_sparsity_pattern_01.cc | 5 +++-- tests/lac/block_vector.cc | 8 ++++---- tests/lac/block_vector_iterator.cc | 14 +++++++------- tests/lac/block_vector_vector_assign.cc | 14 +++++++------- tests/lac/complex_block_vector.cc | 8 ++++---- tests/lac/complex_block_vector_iterator.cc | 14 +++++++------- tests/lac/complex_block_vector_vector_assign.cc | 14 +++++++------- tests/lac/eigen.cc | 4 ++-- tests/lac/full_matrix.cc | 8 ++++---- tests/lac/householder.cc | 4 ++-- tests/lac/identity_matrix_01.cc | 4 ++-- tests/lac/identity_matrix_02.cc | 4 ++-- tests/lac/identity_matrix_03.cc | 4 ++-- tests/lac/identity_matrix_04.cc | 4 ++-- tests/lac/identity_matrix_05.cc | 4 ++-- tests/lac/matrices.cc | 2 +- tests/lac/matrix_lib.cc | 8 ++++---- tests/lac/matrix_out.cc | 10 ++++++---- tests/lac/mg.cc | 2 +- tests/lac/mgbase.cc | 2 +- tests/lac/print_formatted_ez_01.cc | 5 +++-- tests/lac/solver.cc | 4 ++-- tests/lac/sparse_ilu.cc | 8 ++++---- tests/lac/sparse_ilu_t.cc | 8 ++++---- tests/lac/sparse_matrices.cc | 6 +++--- tests/lac/sparsity_pattern.cc | 4 ++-- tests/lac/trace.cc | 8 ++++---- tests/lac/tridiagonal_matrix.cc | 8 ++++---- tests/lac/tridiagonal_matrix_sym.cc | 8 ++++---- tests/lac/vector-vector.cc | 8 ++++---- 33 files changed, 112 insertions(+), 108 deletions(-) diff --git a/tests/lac/bicgstab_early.cc b/tests/lac/bicgstab_early.cc index a34d169d3c..d88b1a830f 100644 --- a/tests/lac/bicgstab_early.cc +++ b/tests/lac/bicgstab_early.cc @@ -18,7 +18,7 @@ #include "../tests.h" #include #include -#include +#include #include #include "testmatrix.h" #include @@ -32,7 +32,7 @@ int main() { std::ofstream logfile("bicgstab_early/output"); - logfile.precision(4); + deallog << std::setprecision(4); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/block_matrices.cc b/tests/lac/block_matrices.cc index 2922650c8f..992872dec3 100644 --- a/tests/lac/block_matrices.cc +++ b/tests/lac/block_matrices.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include @@ -27,8 +27,8 @@ void test () { std::ofstream logfile("block_matrices/output"); - logfile.setf(std::ios::fixed); - logfile.precision(2); + deallog << std::fixed; + deallog << std::setprecision(2); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/block_minres.cc b/tests/lac/block_minres.cc index f6109f2f88..a4d5414f1f 100644 --- a/tests/lac/block_minres.cc +++ b/tests/lac/block_minres.cc @@ -23,13 +23,13 @@ #include #include #include -#include +#include int main() { std::ofstream logfile("block_minres/output"); - logfile.precision(2); + deallog << std::setprecision(2); deallog.attach(logfile); deallog.depth_console(0); diff --git a/tests/lac/block_sparsity_pattern_01.cc b/tests/lac/block_sparsity_pattern_01.cc index b46cdfc66c..af0c294b0d 100644 --- a/tests/lac/block_sparsity_pattern_01.cc +++ b/tests/lac/block_sparsity_pattern_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2006 by the deal.II authors +// Copyright (C) 2006, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -19,13 +19,14 @@ #include #include +#include #include int main() { std::ofstream logfile("block_sparsity_pattern_01/output"); logfile.setf(std::ios::fixed); - logfile.precision(2); + deallog << std::setprecision(2); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/block_vector.cc b/tests/lac/block_vector.cc index a5228ee5fa..045a05b964 100644 --- a/tests/lac/block_vector.cc +++ b/tests/lac/block_vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -142,8 +142,8 @@ void test () int main () { std::ofstream logfile("block_vector/output"); - logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::fixed; + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/block_vector_iterator.cc b/tests/lac/block_vector_iterator.cc index 89d021e6d4..3b3212738f 100644 --- a/tests/lac/block_vector_iterator.cc +++ b/tests/lac/block_vector_iterator.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -320,7 +320,7 @@ int main () { std::ofstream logfile("block_vector_iterator/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); @@ -331,10 +331,10 @@ int main () } catch (std::exception &e) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Exception on processing: " << e.what() << std::endl + deallog << "Exception on processing: " << e.what() << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; @@ -343,10 +343,10 @@ int main () } catch (...) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Unknown exception!" << std::endl + deallog << "Unknown exception!" << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; diff --git a/tests/lac/block_vector_vector_assign.cc b/tests/lac/block_vector_vector_assign.cc index 032de9f8d6..3ad7543d25 100644 --- a/tests/lac/block_vector_vector_assign.cc +++ b/tests/lac/block_vector_vector_assign.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2006 by the deal.II authors +// Copyright (C) 2006, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include @@ -70,7 +70,7 @@ int main () { std::ofstream logfile("block_vector_vector_assign/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); @@ -81,10 +81,10 @@ int main () } catch (std::exception &e) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Exception on processing: " << e.what() << std::endl + deallog << "Exception on processing: " << e.what() << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; @@ -93,10 +93,10 @@ int main () } catch (...) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Unknown exception!" << std::endl + deallog << "Unknown exception!" << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; diff --git a/tests/lac/complex_block_vector.cc b/tests/lac/complex_block_vector.cc index 291ca996a6..6777abbe98 100644 --- a/tests/lac/complex_block_vector.cc +++ b/tests/lac/complex_block_vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -181,8 +181,8 @@ void test () int main () { std::ofstream logfile("complex_block_vector/output"); - logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::fixed; + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/complex_block_vector_iterator.cc b/tests/lac/complex_block_vector_iterator.cc index 9a8d0f110c..a0ce5ff561 100644 --- a/tests/lac/complex_block_vector_iterator.cc +++ b/tests/lac/complex_block_vector_iterator.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -16,7 +16,7 @@ #include #include #include -#include +#include #include #include #include @@ -320,7 +320,7 @@ int main () { std::ofstream logfile("complex_block_vector_iterator/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); @@ -331,10 +331,10 @@ int main () } catch (std::exception &e) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Exception on processing: " << e.what() << std::endl + deallog << "Exception on processing: " << e.what() << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; @@ -343,10 +343,10 @@ int main () } catch (...) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Unknown exception!" << std::endl + deallog << "Unknown exception!" << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; diff --git a/tests/lac/complex_block_vector_vector_assign.cc b/tests/lac/complex_block_vector_vector_assign.cc index cea3fcf795..833e72c367 100644 --- a/tests/lac/complex_block_vector_vector_assign.cc +++ b/tests/lac/complex_block_vector_vector_assign.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2006, 2007 by the deal.II authors +// Copyright (C) 2006, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,7 +17,7 @@ #include #include #include -#include +#include #include #include #include @@ -70,7 +70,7 @@ int main () { std::ofstream logfile("complex_block_vector_vector_assign/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); @@ -81,10 +81,10 @@ int main () } catch (std::exception &e) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Exception on processing: " << e.what() << std::endl + deallog << "Exception on processing: " << e.what() << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; @@ -93,10 +93,10 @@ int main () } catch (...) { - std::cerr << std::endl << std::endl + deallog << std::endl << std::endl << "----------------------------------------------------" << std::endl; - std::cerr << "Unknown exception!" << std::endl + deallog << "Unknown exception!" << std::endl << "Aborting!" << std::endl << "----------------------------------------------------" << std::endl; diff --git a/tests/lac/eigen.cc b/tests/lac/eigen.cc index 1e73e6b0c8..37c169c477 100644 --- a/tests/lac/eigen.cc +++ b/tests/lac/eigen.cc @@ -15,7 +15,7 @@ #include "../tests.h" #include #include -#include +#include #include #include "testmatrix.h" #include @@ -30,7 +30,7 @@ int main() { std::ofstream logfile("eigen/output"); // logfile.setf(std::ios::fixed); - logfile.precision(4); + deallog << std::setprecision(4); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/full_matrix.cc b/tests/lac/full_matrix.cc index fa137006d2..897bb88571 100644 --- a/tests/lac/full_matrix.cc +++ b/tests/lac/full_matrix.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -15,7 +15,7 @@ #include "../tests.h" #include #include -#include +#include #include #include @@ -43,8 +43,8 @@ int main () { std::ofstream logfile("full_matrix/output"); - logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::fixed; + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/householder.cc b/tests/lac/householder.cc index 3a1f353f54..ccc16b9691 100644 --- a/tests/lac/householder.cc +++ b/tests/lac/householder.cc @@ -20,7 +20,7 @@ #include #include -#include +#include const double rect[] = { @@ -33,7 +33,7 @@ const double rect[] = int main() { std::ofstream logfile("householder/output"); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); diff --git a/tests/lac/identity_matrix_01.cc b/tests/lac/identity_matrix_01.cc index f7a5bad53f..245e9acb96 100644 --- a/tests/lac/identity_matrix_01.cc +++ b/tests/lac/identity_matrix_01.cc @@ -20,7 +20,7 @@ #include #include -#include +#include #include template @@ -66,7 +66,7 @@ int main() { std::ofstream logfile("identity_matrix_01/output"); logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/identity_matrix_02.cc b/tests/lac/identity_matrix_02.cc index 46d825eb50..87b7d60ee5 100644 --- a/tests/lac/identity_matrix_02.cc +++ b/tests/lac/identity_matrix_02.cc @@ -21,7 +21,7 @@ #include #include -#include +#include #include template @@ -67,7 +67,7 @@ int main() { std::ofstream logfile("identity_matrix_02/output"); logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/identity_matrix_03.cc b/tests/lac/identity_matrix_03.cc index 09ca305eba..67c4260417 100644 --- a/tests/lac/identity_matrix_03.cc +++ b/tests/lac/identity_matrix_03.cc @@ -21,7 +21,7 @@ #include #include -#include +#include #include template @@ -68,7 +68,7 @@ int main() { std::ofstream logfile("identity_matrix_03/output"); logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/identity_matrix_04.cc b/tests/lac/identity_matrix_04.cc index 46ef4d8faf..a1d5e402ab 100644 --- a/tests/lac/identity_matrix_04.cc +++ b/tests/lac/identity_matrix_04.cc @@ -21,7 +21,7 @@ #include #include -#include +#include #include template @@ -72,7 +72,7 @@ int main() { std::ofstream logfile("identity_matrix_04/output"); logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/identity_matrix_05.cc b/tests/lac/identity_matrix_05.cc index ce38d3005f..ec13158862 100644 --- a/tests/lac/identity_matrix_05.cc +++ b/tests/lac/identity_matrix_05.cc @@ -21,7 +21,7 @@ #include #include -#include +#include #include template @@ -73,7 +73,7 @@ int main() { std::ofstream logfile("identity_matrix_05/output"); logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/matrices.cc b/tests/lac/matrices.cc index ca7bd310a3..bfd6373aed 100644 --- a/tests/lac/matrices.cc +++ b/tests/lac/matrices.cc @@ -28,7 +28,7 @@ int main() { std::ofstream logfile("matrices/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/matrix_lib.cc b/tests/lac/matrix_lib.cc index 0e801cf047..1428ec8fa7 100644 --- a/tests/lac/matrix_lib.cc +++ b/tests/lac/matrix_lib.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005 by the deal.II authors +// Copyright (C) 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -20,7 +20,7 @@ #include #include -#include +#include #include template @@ -66,8 +66,8 @@ void check_sparse_product(const SparseMatrix& m1, SparseMatrix& int main() { std::ofstream logfile("matrix_lib/output"); - logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::fixed; + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/matrix_out.cc b/tests/lac/matrix_out.cc index 15b994c237..3f70217a19 100644 --- a/tests/lac/matrix_out.cc +++ b/tests/lac/matrix_out.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,13 +17,15 @@ #include #include #include -#include +#include int main () { std::ofstream logfile("matrix_out/output"); - logfile.setf(std::ios::fixed); - logfile.precision(2); + logfile << std::fixed; + logfile << std::setprecision(2); + deallog << std::fixed; + deallog << std::setprecision(2); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/mg.cc b/tests/lac/mg.cc index 2ac05b264d..17170d3e33 100644 --- a/tests/lac/mg.cc +++ b/tests/lac/mg.cc @@ -15,7 +15,7 @@ #include "../tests.h" #include #include -#include +#include #include "testmatrix.h" #include #include diff --git a/tests/lac/mgbase.cc b/tests/lac/mgbase.cc index af8370f87f..a57fc41b12 100644 --- a/tests/lac/mgbase.cc +++ b/tests/lac/mgbase.cc @@ -18,7 +18,7 @@ #include #include -#include +#include class TransferTest : diff --git a/tests/lac/print_formatted_ez_01.cc b/tests/lac/print_formatted_ez_01.cc index 621833b094..69dbc32bf2 100644 --- a/tests/lac/print_formatted_ez_01.cc +++ b/tests/lac/print_formatted_ez_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2007 by the deal.II authors +// Copyright (C) 2005, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -19,13 +19,14 @@ #include +#include #include int main() { std::ofstream logfile("print_formatted_ez_01/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/solver.cc b/tests/lac/solver.cc index 830315978a..483c323296 100644 --- a/tests/lac/solver.cc +++ b/tests/lac/solver.cc @@ -15,7 +15,7 @@ #include "../tests.h" #include #include -#include +#include #include #include "testmatrix.h" #include @@ -70,7 +70,7 @@ int main() { std::ofstream logfile("solver/output"); // logfile.setf(std::ios::fixed); - logfile.precision(4); + deallog << std::setprecision(4); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/sparse_ilu.cc b/tests/lac/sparse_ilu.cc index 30ec91e6df..aaf1ce7e7f 100644 --- a/tests/lac/sparse_ilu.cc +++ b/tests/lac/sparse_ilu.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -18,7 +18,7 @@ #include "../tests.h" #include #include -#include +#include #include #include #include "testmatrix.h" @@ -32,8 +32,8 @@ int main() { std::ofstream logfile("sparse_ilu/output"); - logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::fixed; + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/sparse_ilu_t.cc b/tests/lac/sparse_ilu_t.cc index 07ee57697a..745a6576b9 100644 --- a/tests/lac/sparse_ilu_t.cc +++ b/tests/lac/sparse_ilu_t.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -18,7 +18,7 @@ #include "../tests.h" #include #include -#include +#include #include #include #include "testmatrix.h" @@ -32,8 +32,8 @@ int main() { std::ofstream logfile("sparse_ilu_t/output"); - logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::fixed; + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/sparse_matrices.cc b/tests/lac/sparse_matrices.cc index 5f07d9e6c9..5e9639b516 100644 --- a/tests/lac/sparse_matrices.cc +++ b/tests/lac/sparse_matrices.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005, 2007, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -272,8 +272,8 @@ void check_conjugate(std::ostream& out) int main() { std::ofstream logfile("sparse_matrices/output"); -// logfile.setf(std::ios::fixed); - logfile.precision(3); + logfile << std::setprecision(3); + deallog << std::setprecision(3); deallog.attach(logfile); // Switch between regression test diff --git a/tests/lac/sparsity_pattern.cc b/tests/lac/sparsity_pattern.cc index 0e491d8011..6723a690a4 100644 --- a/tests/lac/sparsity_pattern.cc +++ b/tests/lac/sparsity_pattern.cc @@ -17,7 +17,7 @@ #include #include "testmatrix.h" #include -#include +#include #include #include #include @@ -28,7 +28,7 @@ main () { std::ofstream logfile("sparsity_pattern/output"); logfile.setf(std::ios::fixed); - logfile.precision(3); + deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/trace.cc b/tests/lac/trace.cc index adf2e5126e..f23e694ac5 100644 --- a/tests/lac/trace.cc +++ b/tests/lac/trace.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -19,15 +19,15 @@ #include #include -#include +#include #include int main() { std::ofstream logfile("trace/output"); - logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::fixed; + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/tridiagonal_matrix.cc b/tests/lac/tridiagonal_matrix.cc index 445176338e..6c9e598cb0 100644 --- a/tests/lac/tridiagonal_matrix.cc +++ b/tests/lac/tridiagonal_matrix.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -26,7 +26,7 @@ #include #include -#include +#include #include #include @@ -193,8 +193,8 @@ check(unsigned int size) int main() { std::ofstream logfile("tridiagonal_matrix/output"); - logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::fixed; + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/tridiagonal_matrix_sym.cc b/tests/lac/tridiagonal_matrix_sym.cc index 7c3cdaa521..57dba31fb5 100644 --- a/tests/lac/tridiagonal_matrix_sym.cc +++ b/tests/lac/tridiagonal_matrix_sym.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include @@ -141,8 +141,8 @@ check(unsigned int size) int main() { std::ofstream logfile("tridiagonal_matrix_sym/output"); - logfile.setf(std::ios::fixed); - logfile.precision(0); + deallog << std::fixed; + deallog << std::setprecision(0); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/lac/vector-vector.cc b/tests/lac/vector-vector.cc index 34fc260e78..f3dc56c6d0 100644 --- a/tests/lac/vector-vector.cc +++ b/tests/lac/vector-vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -17,7 +17,7 @@ #include #include #include -#include +#include @@ -153,8 +153,8 @@ void check_vectors (Vector &d1, Vector &d2) int main() { std::ofstream logfile("vector-vector/output"); - logfile.setf(std::ios::fixed); - logfile.precision(2); + deallog << std::fixed; + deallog << std::setprecision(2); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); -- 2.39.5