]> https://gitweb.dealii.org/ - dealii.git/commitdiff
tests must be changed for new LogStream
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 04:59:09 +0000 (04:59 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 04:59:09 +0000 (04:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@15661 0785d39b-7218-0410-832d-ea1e28bc413d

33 files changed:
tests/lac/bicgstab_early.cc
tests/lac/block_matrices.cc
tests/lac/block_minres.cc
tests/lac/block_sparsity_pattern_01.cc
tests/lac/block_vector.cc
tests/lac/block_vector_iterator.cc
tests/lac/block_vector_vector_assign.cc
tests/lac/complex_block_vector.cc
tests/lac/complex_block_vector_iterator.cc
tests/lac/complex_block_vector_vector_assign.cc
tests/lac/eigen.cc
tests/lac/full_matrix.cc
tests/lac/householder.cc
tests/lac/identity_matrix_01.cc
tests/lac/identity_matrix_02.cc
tests/lac/identity_matrix_03.cc
tests/lac/identity_matrix_04.cc
tests/lac/identity_matrix_05.cc
tests/lac/matrices.cc
tests/lac/matrix_lib.cc
tests/lac/matrix_out.cc
tests/lac/mg.cc
tests/lac/mgbase.cc
tests/lac/print_formatted_ez_01.cc
tests/lac/solver.cc
tests/lac/sparse_ilu.cc
tests/lac/sparse_ilu_t.cc
tests/lac/sparse_matrices.cc
tests/lac/sparsity_pattern.cc
tests/lac/trace.cc
tests/lac/tridiagonal_matrix.cc
tests/lac/tridiagonal_matrix_sym.cc
tests/lac/vector-vector.cc

index a34d169d3c8fc9c6de2068cd7870a4775d618f88..d88b1a830fa4138375c245d3b1cfe573e01f0ac0 100644 (file)
@@ -18,7 +18,7 @@
 #include "../tests.h"
 #include <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include "testmatrix.h"
 #include <base/logstream.h>
@@ -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);
index 2922650c8f53308567521ca78e6a1bd85969e3af..992872dec3c63546076cf0f59f3463c177ee94d0 100644 (file)
@@ -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 <lac/block_sparse_matrix.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <algorithm>
 
 
@@ -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);
index f6109f2f88e02c66dda0c1bdb2ed35331f75a6ed..a4d5414f1f5db561a9fe3068c6e393a48cd4282a 100644 (file)
 #include <lac/solver_minres.h>
 #include <lac/precondition.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 
 int main()
 {
   std::ofstream logfile("block_minres/output");
-  logfile.precision(2);
+  deallog << std::setprecision(2);
   deallog.attach(logfile);
   deallog.depth_console(0);
 
index b46cdfc66c7e3c9d673410d89ae4f7141a1c7e42..af0c294b0d7820c9369faf14a512bcffcec8023c 100644 (file)
@@ -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
 #include <base/logstream.h>
 #include <lac/block_sparsity_pattern.h>
 
+#include <iomanip>
 #include <fstream>
 
 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);
index a5228ee5fad3d1abde60b5f90931a665e326fe67..045a05b964d8bc36757eb26d14d55d36305642ec 100644 (file)
@@ -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 <lac/block_sparse_matrix.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 #include <list>
 
@@ -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);
index 89d021e6d429430fda30ddae75de76f5d1813c34..3b3212738f90b7a039797a920fe002d35f03b177 100644 (file)
@@ -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 <base/logstream.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 #include <algorithm>
 #include <numeric>
@@ -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;
index 032de9f8d6d37f441463e94bb5a7f52540ceee04..3ad7543d25b9ca2d40c02a55ffebd0277aaccbc8 100644 (file)
@@ -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 <base/logstream.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 #include <algorithm>
 #include <numeric>
@@ -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;
index 291ca996a69475c52c2a40c9127effcc407142ba..6777abbe98bce069cc1718b76b61de32ff9c572c 100644 (file)
@@ -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 <lac/block_sparse_matrix.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 #include <list>
 
@@ -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);
index 9a8d0f110c82fa96452dc662e686171dbd45b6b2..a0ce5ff5612b8380374f589b759beb3ffed4e65f 100644 (file)
@@ -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 <base/logstream.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 #include <algorithm>
 #include <numeric>
@@ -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;
index cea3fcf795ded513c990531d8e2a40ea6a43f6eb..833e72c367827e11675ea9dbf0a1350de129a035 100644 (file)
@@ -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 <base/logstream.h>
 #include <lac/block_vector.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 #include <algorithm>
 #include <numeric>
@@ -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;
index 1e73e6b0c84b4a01646a89d748e8076c0647f8d5..37c169c477437fc5e617fa33e9bbe1d53fefc979 100644 (file)
@@ -15,7 +15,7 @@
 #include "../tests.h"
 #include <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include "testmatrix.h"
 #include <base/logstream.h>
@@ -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);
index fa137006d2f53350ba5601c1afab87a45bfe8a20..897bb8857171af5352aba5270d8e8acb14e7765a 100644 (file)
@@ -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 <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include <cstdlib>
 
@@ -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);
index 3a1f353f5421d7580a7dd7e3a4299cb18fe2960a..ccc16b9691673bae645f89e4e28a5536667c7704 100644 (file)
@@ -20,7 +20,7 @@
 #include <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 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);
   
index f7a5bad53f34c29715d72b5a5b0dc2842138b4be..245e9acb96045fe02cdc5edd2c3c8fcabda98837 100644 (file)
@@ -20,7 +20,7 @@
 #include <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 template<typename number>
@@ -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);
index 46d825eb50d7609ab85061f06196134511bbfe62..87b7d60ee50d08c2673f41f701114eaf66d83f02 100644 (file)
@@ -21,7 +21,7 @@
 #include <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 template<typename number>
@@ -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);
index 09ca305ebac6957fd64baabf7a326096c774ef14..67c4260417597fd83cbc721bad9fab9e63c274f6 100644 (file)
@@ -21,7 +21,7 @@
 #include <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 template<typename number>
@@ -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);
index 46ef4d8faf1ab985112f006cc4abf80a5814c9ac..a1d5e402abcc4eb43793ec3d9edbd68a38408497 100644 (file)
@@ -21,7 +21,7 @@
 #include <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 template<typename number>
@@ -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);
index ce38d3005feed8f83ed22829f0c055c02cfb09ac..ec131588626bc3a6767e671502471cdfc4a2f863 100644 (file)
@@ -21,7 +21,7 @@
 #include <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 template<typename number>
@@ -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);
index ca7bd310a356c56d97a292e3f2c493bef7c861cf..bfd6373aed14b26b23bfc3ffdf3d96ac98e622fd 100644 (file)
@@ -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);
index 0e801cf04743e67f80c0388b5c85c66e57303d74..1428ec8fa72737c425ed8d1a257cbeb6de9aca73 100644 (file)
@@ -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 <lac/vector_memory.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 template<typename number>
@@ -66,8 +66,8 @@ void check_sparse_product(const SparseMatrix<number>& m1, SparseMatrix<number>&
 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);
index 15b994c23755489c5be6e63f56ab34b88d318912..3f70217a19e530663bdb38480e5bd6cbdaf48b9e 100644 (file)
@@ -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
 #include <lac/matrix_out.h>
 #include <lac/full_matrix.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 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);
index 2ac05b264d556cf79c0d9e349bd9c249abb0cd80..17170d3e33aed962c43eaff34d14676ea8008140 100644 (file)
@@ -15,7 +15,7 @@
 #include "../tests.h"
 #include <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include "testmatrix.h"
 #include <base/logstream.h>
 #include <lac/sparse_matrix.h>
index af8370f87fc0d8ee2a2f74fe9d61dce751301076..a57fc41b121bb11ac41b72cd3e79a2f453990683 100644 (file)
@@ -18,7 +18,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 class TransferTest
   :
index 621833b094dfecec49db3078dc337e45b08eed10..69dbc32bf26395037b42e67365ed8fc5c4dba271 100644 (file)
@@ -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
 
 #include <lac/sparse_matrix_ez.h>
 
+#include <iomanip>
 #include <fstream>
 
 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);
index 830315978a2876ceaf3f67d7a0dc1fa3a3ef3c95..483c323296f48ac6092d48564ff3ea21b8f03cf8 100644 (file)
@@ -15,7 +15,7 @@
 #include "../tests.h"
 #include <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include "testmatrix.h"
 #include <base/logstream.h>
@@ -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);
index 30ec91e6df9d2d9abbf7451f3eb04d3a6d6660f8..aaf1ce7e7fa0835bfada3b584cee381957ed461c 100644 (file)
@@ -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 <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include <cstdlib>
 #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);
index 07ee57697ac522702b8f7e61aa62df139e63f4e1..745a6576b971fc92d4432aac421f441bd7309401 100644 (file)
@@ -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 <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include <cstdlib>
 #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);
index 5f07d9e6c9f56e3b9637fe3dbbadd744627ad698..5e9639b5160f0e986439f1ba435089edeb6fce14 100644 (file)
@@ -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
index 0e491d8011c935f6e432e79120608ad48cfd0463..6723a690a4aac68d611b4df83e473ba150d4408d 100644 (file)
@@ -17,7 +17,7 @@
 #include <lac/sparsity_pattern.h>
 #include "testmatrix.h"
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <list>
 #include <set>
 #include <cstdio>
@@ -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);
index adf2e5126e1730bf27363688225fce76788abdea..f23e694ac5773308d1db964bbc96a45e2aaeec3b 100644 (file)
@@ -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
 #include <lac/full_matrix.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <cmath>
 
 
 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);
index 445176338e790e6abe29d28065a8103545410e66..6c9e598cb07b08b0457ef21a26d3ed54474f50fc 100644 (file)
@@ -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 <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include <cmath>
 
@@ -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);
index 7c3cdaa521dfea9ec0b00f4fda48a2158d3f2e44..57dba31fb5cd07c5396126a9c0219a6688e2acd4 100644 (file)
@@ -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 <lac/vector.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 #include <cmath>
 
@@ -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);
index 34fc260e7852c4d9e253e96d227d0d65d730ce77..f3dc56c6d098c2717140d58ad32f9970a3d136e1 100644 (file)
@@ -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 <lac/vector.h>
 #include <cmath>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 
 
@@ -153,8 +153,8 @@ void check_vectors (Vector<number1> &d1, Vector<number2> &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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.