From: Guido Kanschat Date: Fri, 8 Apr 2005 13:36:43 +0000 (+0000) Subject: filter in LogStream X-Git-Tag: v8.0.0~14114 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc30364bf47d5b560ed3c501f14a3b8689e6b00f;p=dealii.git filter in LogStream git-svn-id: https://svn.dealii.org/trunk@10433 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/anisotropic_1.cc b/tests/base/anisotropic_1.cc index 418c4ad2a3..96c5df497a 100644 --- a/tests/base/anisotropic_1.cc +++ b/tests/base/anisotropic_1.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2003, 2004 by the deal.II authors +// Copyright (C) 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -145,6 +145,7 @@ int main() logfile.precision(2); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); deallog.push("Lagrange"); std::vector > p; diff --git a/tests/base/anisotropic_2.cc b/tests/base/anisotropic_2.cc index 6a7488ffb1..dad145c3fb 100644 --- a/tests/base/anisotropic_2.cc +++ b/tests/base/anisotropic_2.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2003, 2004 by the deal.II authors +// Copyright (C) 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -152,6 +152,7 @@ int main() logfile.precision(2); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // deallog.push("Lagrange"); // check (); diff --git a/tests/base/auto_derivative_function.cc b/tests/base/auto_derivative_function.cc index 2c1ce6df86..4c86e4b655 100644 --- a/tests/base/auto_derivative_function.cc +++ b/tests/base/auto_derivative_function.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -121,6 +121,7 @@ int main() logfile.precision(4); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); const unsigned int dim=2; AutoSinExp auto_function; diff --git a/tests/base/data_out_base.cc b/tests/base/data_out_base.cc index 933215cd8c..4020dc73b5 100644 --- a/tests/base/data_out_base.cc +++ b/tests/base/data_out_base.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -202,6 +202,7 @@ int main() std::ofstream logfile("data_out_base.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); //TODO: write_eps says ExcNotImplemented // test<1,1>(logfile); diff --git a/tests/base/full_tensor_01.cc b/tests/base/full_tensor_01.cc index 4e5d10df45..3f7a6661a9 100644 --- a/tests/base/full_tensor_01.cc +++ b/tests/base/full_tensor_01.cc @@ -25,6 +25,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); Tensor<2,2> t; t[0][0] = 1; diff --git a/tests/base/full_tensor_02.cc b/tests/base/full_tensor_02.cc index 7d9569afc4..580761408f 100644 --- a/tests/base/full_tensor_02.cc +++ b/tests/base/full_tensor_02.cc @@ -25,6 +25,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); Tensor<2,3> t; t[0][0] = 1; diff --git a/tests/base/full_tensor_03.cc b/tests/base/full_tensor_03.cc index f2b58dbef9..c49cde07f1 100644 --- a/tests/base/full_tensor_03.cc +++ b/tests/base/full_tensor_03.cc @@ -25,6 +25,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); Tensor<4,2> t; t[0][0][0][0] = 1; diff --git a/tests/base/full_tensor_04.cc b/tests/base/full_tensor_04.cc index fad59d5579..ca5c51edce 100644 --- a/tests/base/full_tensor_04.cc +++ b/tests/base/full_tensor_04.cc @@ -25,6 +25,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); Tensor<4,3> t; t[0][0][0][0] = 1; diff --git a/tests/base/full_tensor_05.cc b/tests/base/full_tensor_05.cc index 368692fe9e..70a2483100 100644 --- a/tests/base/full_tensor_05.cc +++ b/tests/base/full_tensor_05.cc @@ -79,6 +79,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/full_tensor_06.cc b/tests/base/full_tensor_06.cc index dfd3b0fbd6..d4d592caeb 100644 --- a/tests/base/full_tensor_06.cc +++ b/tests/base/full_tensor_06.cc @@ -84,6 +84,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/full_tensor_08.cc b/tests/base/full_tensor_08.cc index 0d5095c101..58c574b0c5 100644 --- a/tests/base/full_tensor_08.cc +++ b/tests/base/full_tensor_08.cc @@ -64,6 +64,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/full_tensor_09.cc b/tests/base/full_tensor_09.cc index cc2bb20766..256f5c0b0b 100644 --- a/tests/base/full_tensor_09.cc +++ b/tests/base/full_tensor_09.cc @@ -47,6 +47,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/function_parser.cc b/tests/base/function_parser.cc index 2cbdc9c01e..9ef8bfaf9e 100644 --- a/tests/base/function_parser.cc +++ b/tests/base/function_parser.cc @@ -30,6 +30,7 @@ int main () std::ofstream logfile("function_parser.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // Define some constants that will be used by the function parser std::map constants; diff --git a/tests/base/hierarchical.cc b/tests/base/hierarchical.cc index ec3d48a7f5..e69c3786a1 100644 --- a/tests/base/hierarchical.cc +++ b/tests/base/hierarchical.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2003, 2004 by the deal.II authors +// Copyright (C) 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -32,6 +32,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); const std::vector > p = Hierarchical::generate_complete_basis (10); diff --git a/tests/base/logtest.cc b/tests/base/logtest.cc index 25618e8793..6f0c1b5b97 100644 --- a/tests/base/logtest.cc +++ b/tests/base/logtest.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -27,6 +27,7 @@ int main() std::ofstream logfile("logtest.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); deallog << "Test" << std::endl; deallog.push("l1"); diff --git a/tests/base/path_search.cc b/tests/base/path_search.cc index 0e76ae9340..5e73921f63 100644 --- a/tests/base/path_search.cc +++ b/tests/base/path_search.cc @@ -20,6 +20,7 @@ int main() std::ofstream logfile("path_search.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); PathSearch::add_class("CC"); diff --git a/tests/base/polynomial1d.cc b/tests/base/polynomial1d.cc index 0c7b9bd315..dcd7647e8f 100644 --- a/tests/base/polynomial1d.cc +++ b/tests/base/polynomial1d.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -93,6 +93,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); deallog.log_cerr(); polynomial_arithmetic(); diff --git a/tests/base/polynomial_test.cc b/tests/base/polynomial_test.cc index 20a10d2f2b..42d72643f7 100644 --- a/tests/base/polynomial_test.cc +++ b/tests/base/polynomial_test.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -143,6 +143,7 @@ int main() logfile.precision(2); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); deallog.push("Lagrange"); std::vector > p; diff --git a/tests/base/quadrature_selector.cc b/tests/base/quadrature_selector.cc index fec7611dd4..1dd0c733d8 100644 --- a/tests/base/quadrature_selector.cc +++ b/tests/base/quadrature_selector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -43,6 +43,7 @@ int main() std::ofstream logfile("quadrature_selector.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); check ("gauss", 2, QGauss2<1>()); check ("gauss", 2, QGauss2<2>()); diff --git a/tests/base/quadrature_test.cc b/tests/base/quadrature_test.cc index a3a0713f90..be32ab9ed1 100644 --- a/tests/base/quadrature_test.cc +++ b/tests/base/quadrature_test.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -188,6 +188,7 @@ int main() std::ofstream logfile("quadrature_test.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); std::vector *> q1; std::vector *> q2; diff --git a/tests/base/reference.cc b/tests/base/reference.cc index 1631ce6771..d97d8a676a 100644 --- a/tests/base/reference.cc +++ b/tests/base/reference.cc @@ -41,6 +41,7 @@ int main() std::ofstream logfile("reference.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // we do something rather weird in // this file: bind the buffer of diff --git a/tests/base/slice_vector.cc b/tests/base/slice_vector.cc index 19657fcfab..1ab892f87f 100644 --- a/tests/base/slice_vector.cc +++ b/tests/base/slice_vector.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004 by the deal.II authors +// Copyright (C) 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -35,6 +35,7 @@ int main() std::ofstream logfile("slice_vector.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // we do something rather weird in // this file: bind the buffer of diff --git a/tests/base/symmetric_tensor_01.cc b/tests/base/symmetric_tensor_01.cc index af3b19754c..f331a2555e 100644 --- a/tests/base/symmetric_tensor_01.cc +++ b/tests/base/symmetric_tensor_01.cc @@ -25,6 +25,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); SymmetricTensor<2,2> t; t[0][0] = 1; diff --git a/tests/base/symmetric_tensor_02.cc b/tests/base/symmetric_tensor_02.cc index 1ba67ea870..d9da421426 100644 --- a/tests/base/symmetric_tensor_02.cc +++ b/tests/base/symmetric_tensor_02.cc @@ -25,6 +25,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); SymmetricTensor<2,3> t; t[0][0] = 1; diff --git a/tests/base/symmetric_tensor_03.cc b/tests/base/symmetric_tensor_03.cc index 5c43cd5fc1..63aa8a18d2 100644 --- a/tests/base/symmetric_tensor_03.cc +++ b/tests/base/symmetric_tensor_03.cc @@ -1,4 +1,4 @@ -//---------------------------- symmetric_tensor_03.cc --------------------------- +//--------------------------------------------------------------------------- // $Id$ // Version: $Name$ // @@ -9,11 +9,10 @@ // to the file deal.II/doc/license.html for the text and // further information on this license. // -//---------------------------- symmetric_tensor_03.cc --------------------------- +//--------------------------------------------------------------------------- // test symmetric 2x2x2x2 tensors -#include "../tests.h" #include #include #include @@ -25,6 +24,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); SymmetricTensor<4,2> t; t[0][0][0][0] = 1; diff --git a/tests/base/symmetric_tensor_04.cc b/tests/base/symmetric_tensor_04.cc index 93e16f6fe2..c614765998 100644 --- a/tests/base/symmetric_tensor_04.cc +++ b/tests/base/symmetric_tensor_04.cc @@ -13,7 +13,6 @@ // test symmetric 3x3x3x3 tensors -#include "../tests.h" #include #include #include @@ -25,6 +24,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); SymmetricTensor<4,3> t; t[0][0][0][0] = 1; diff --git a/tests/base/symmetric_tensor_05.cc b/tests/base/symmetric_tensor_05.cc index 833a07756a..4a8dfca2c0 100644 --- a/tests/base/symmetric_tensor_05.cc +++ b/tests/base/symmetric_tensor_05.cc @@ -14,7 +14,6 @@ // make sure the tensor t_ijkl=delta_ik delta_jl + delta_il delta_jk // actually maps a rank-2 tensor onto twice itself -#include "../tests.h" #include #include #include @@ -80,7 +79,8 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); - + deallog.threshold_double(1.e-10); + test<2> (); test<3> (); diff --git a/tests/base/symmetric_tensor_06.cc b/tests/base/symmetric_tensor_06.cc index d50bab2f6e..da9d2b85a3 100644 --- a/tests/base/symmetric_tensor_06.cc +++ b/tests/base/symmetric_tensor_06.cc @@ -84,6 +84,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/symmetric_tensor_07.cc b/tests/base/symmetric_tensor_07.cc index 6bd31f19dd..0c7fcf6773 100644 --- a/tests/base/symmetric_tensor_07.cc +++ b/tests/base/symmetric_tensor_07.cc @@ -84,6 +84,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/symmetric_tensor_08.cc b/tests/base/symmetric_tensor_08.cc index 659db998e2..570a12da91 100644 --- a/tests/base/symmetric_tensor_08.cc +++ b/tests/base/symmetric_tensor_08.cc @@ -69,6 +69,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/symmetric_tensor_09.cc b/tests/base/symmetric_tensor_09.cc index bb362635c8..84b4a46430 100644 --- a/tests/base/symmetric_tensor_09.cc +++ b/tests/base/symmetric_tensor_09.cc @@ -44,6 +44,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); test<2> (); test<3> (); diff --git a/tests/base/table.cc b/tests/base/table.cc index 5f662ed777..021aa5c396 100644 --- a/tests/base/table.cc +++ b/tests/base/table.cc @@ -39,6 +39,7 @@ main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // a square table if (true) diff --git a/tests/base/tensor.cc b/tests/base/tensor.cc index fb1c024523..102c935d53 100644 --- a/tests/base/tensor.cc +++ b/tests/base/tensor.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -12,7 +12,6 @@ //---------------------------- tensor.cc --------------------------- -#include "../tests.h" #include #include #include @@ -25,6 +24,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}}; double b[3][3] = {{25,31,37}, {45,57,69}, {75,96,117}}; diff --git a/tests/base/timer.cc b/tests/base/timer.cc index 77939f91df..77735f4a35 100644 --- a/tests/base/timer.cc +++ b/tests/base/timer.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -56,6 +56,7 @@ int main () std::ofstream logfile("timer.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); Timer t1,t2; burn (20); diff --git a/tests/lac/block_matrices.cc b/tests/lac/block_matrices.cc index 2ab80141a7..efab88fbc6 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 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -31,6 +31,7 @@ void test () logfile.precision(2); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); BlockSparsityPattern bsp(3,2); // set sizes diff --git a/tests/lac/block_vector.cc b/tests/lac/block_vector.cc index 94d2b9d368..6078f8666b 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 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -146,6 +146,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // do the same weird stuff as in // tests/base/reference.cc diff --git a/tests/lac/block_vector_iterator.cc b/tests/lac/block_vector_iterator.cc index 2d1f71999b..96bca2adb1 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 by the deal.II authors +// Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -323,6 +323,7 @@ int main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); try { diff --git a/tests/lac/eigen.cc b/tests/lac/eigen.cc index c2d9dba649..6cdcc36e1c 100644 --- a/tests/lac/eigen.cc +++ b/tests/lac/eigen.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -33,7 +33,8 @@ int main() logfile.precision(4); deallog.attach(logfile); deallog.depth_console(0); - + deallog.threshold_double(1.e-10); + GrowingVectorMemory<> mem; SolverControl control(1000, 1.e-5); diff --git a/tests/lac/full_matrix.cc b/tests/lac/full_matrix.cc index 47a0e65f73..77465ac922 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 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -47,6 +47,7 @@ main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); std::srand(3391466); FullMatrix T(3,3,entries); diff --git a/tests/lac/lapack.cc b/tests/lac/lapack.cc index 3779c0e1ce..4634cce241 100644 --- a/tests/lac/lapack.cc +++ b/tests/lac/lapack.cc @@ -51,6 +51,7 @@ int main() logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); #ifdef HAVE_LIBLAPACK FullMatrix A(3,4,rect); diff --git a/tests/lac/matrix_lib.cc b/tests/lac/matrix_lib.cc index e887ff93a8..90d3202787 100644 --- a/tests/lac/matrix_lib.cc +++ b/tests/lac/matrix_lib.cc @@ -70,6 +70,7 @@ int main() logfile.precision(0); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); SparsityPattern sparsity1(2,3,3); SparsityPattern sparsity2(3,4,4); diff --git a/tests/lac/matrix_out.cc b/tests/lac/matrix_out.cc index 9e7aee29cb..8aa9c4fb13 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 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -26,6 +26,7 @@ int main () logfile.precision(2); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // test for a square full matrix if (true) diff --git a/tests/lac/mg.cc b/tests/lac/mg.cc index 5dc655ba3d..834ffddb2f 100644 --- a/tests/lac/mg.cc +++ b/tests/lac/mg.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -102,6 +102,7 @@ int main() std::ofstream logfile("mg.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); PrimitiveVectorMemory > mem; SolverControl control(10000, ACCURACY); diff --git a/tests/lac/mgbase.cc b/tests/lac/mgbase.cc index a34bda0e4b..ca391ba2cb 100644 --- a/tests/lac/mgbase.cc +++ b/tests/lac/mgbase.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -94,6 +94,7 @@ int main() std::ofstream logfile("mgbase.output"); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); TransferTest tr; SmoothTest s; diff --git a/tests/lac/solver.cc b/tests/lac/solver.cc index df53acf3a6..1c1349cc7a 100644 --- a/tests/lac/solver.cc +++ b/tests/lac/solver.cc @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -72,6 +73,7 @@ int main() logfile.precision(4); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); GrowingVectorMemory<> mem; SolverControl control(100, 1.e-3); @@ -80,6 +82,7 @@ int main() SolverGMRES<> gmres(control, mem, 8); SolverGMRES<>::AdditionalData(8, true); SolverGMRES<> gmresright(control, mem, 8); + SolverMinRes<> minres(control, mem); SolverBicgstab<> bicgstab(control, mem); SolverRichardson<> rich(control, mem); SolverQMRS<> qmrs(control, mem); @@ -153,6 +156,7 @@ int main() check_solve(bicgstab,A,u,f,prec_no); check_solve(gmres,A,u,f,prec_no); check_solve(gmresright,A,u,f,prec_no); +// check_solve(minres,A,u,f,prec_no); check_solve(qmrs,A,u,f,prec_no); control.set_max_steps(100); diff --git a/tests/lac/sparse_ilu.cc b/tests/lac/sparse_ilu.cc index 3401985396..8a0b23744e 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 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -36,6 +36,7 @@ int main() logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); for (unsigned int size=4; size <= 16; size *= 2) diff --git a/tests/lac/sparse_matrices.cc b/tests/lac/sparse_matrices.cc index d11777835c..28c0cd7788 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 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -261,6 +261,7 @@ int main() // and benchmark #ifdef DEBUG deallog.depth_console(0); + deallog.threshold_double(1.e-10); const unsigned int size = 5; const unsigned int row_length = 3; #else diff --git a/tests/lac/sparsity_pattern.cc b/tests/lac/sparsity_pattern.cc index 4e3204e737..3644f73e14 100644 --- a/tests/lac/sparsity_pattern.cc +++ b/tests/lac/sparsity_pattern.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2001, 2002, 2003, 2004 by the deal.II authors +// Copyright (C) 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -31,6 +31,7 @@ main () logfile.precision(3); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); // generate usual sparsity pattern const unsigned int N = 15; diff --git a/tests/lac/tridiagonal_matrix.cc b/tests/lac/tridiagonal_matrix.cc index 4a28aac561..e0f1861f13 100644 --- a/tests/lac/tridiagonal_matrix.cc +++ b/tests/lac/tridiagonal_matrix.cc @@ -67,6 +67,7 @@ int main() logfile.precision(0); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); check_vmult(); } diff --git a/tests/lac/vector-vector.cc b/tests/lac/vector-vector.cc index 76d96c09b9..235186d0a2 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 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -157,6 +157,7 @@ int main() logfile.precision(2); deallog.attach(logfile); deallog.depth_console(0); + deallog.threshold_double(1.e-10); Vector d1(N), d2(N); Vector f1(N), f2(N); diff --git a/tests/tests.h b/tests/tests.h index e58998636a..22958d70c1 100644 --- a/tests/tests.h +++ b/tests/tests.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2004 by the deal.II authors +// Copyright (C) 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -24,26 +24,6 @@ // numbers below a certain threshold are simply printed as zeros. this removes // a number of possible places where output may differ depending on platform, // compiler options, etc, simply because round-off is different. -inline -LogStream & operator << (LogStream &logstream, - const double d) -{ - if (std::fabs (d) < 1e-10) - logstream. -#ifdef DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG - template -#endif - operator << (0.); - else - logstream. -#ifdef DEAL_II_TEMPL_OP_DISAMBIGUATION_BUG - template -#endif - operator << (d); - return logstream; -} - - inline LogStream & operator << (LogStream &logstream, const float d)