]> 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 05:31:14 +0000 (05:31 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Thu, 24 Jan 2008 05:31:14 +0000 (05:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@15662 0785d39b-7218-0410-832d-ea1e28bc413d

72 files changed:
tests/deal.II/block_matrices.cc
tests/deal.II/boundaries.cc
tests/deal.II/constraint_graph.cc
tests/deal.II/constraints.cc
tests/deal.II/create_laplace_matrix_01.cc
tests/deal.II/create_laplace_matrix_02.cc
tests/deal.II/create_laplace_matrix_03.cc
tests/deal.II/create_laplace_matrix_04.cc
tests/deal.II/create_mass_matrix_01.cc
tests/deal.II/create_mass_matrix_02.cc
tests/deal.II/create_mass_matrix_03.cc
tests/deal.II/create_mass_matrix_04.cc
tests/deal.II/data_out.cc
tests/deal.II/derivative_approximation.cc
tests/deal.II/derivative_approximation_2.cc
tests/deal.II/derivatives.cc
tests/deal.II/dof_renumbering.cc
tests/deal.II/dof_renumbering_02.cc
tests/deal.II/error_estimator.cc
tests/deal.II/face_orientations_3d.cc
tests/deal.II/fe_tables.cc
tests/deal.II/filtered_iterator.cc
tests/deal.II/filtered_matrix.cc
tests/deal.II/grid_generator_01.cc
tests/deal.II/grid_hyper_shell.cc
tests/deal.II/grid_in.cc
tests/deal.II/grid_in_3d.cc
tests/deal.II/grid_in_msh.cc
tests/deal.II/grid_in_tecplot.cc
tests/deal.II/grid_out.cc
tests/deal.II/grid_out_02.cc
tests/deal.II/grid_output_input.cc
tests/deal.II/grid_test.cc
tests/deal.II/grid_tools.cc
tests/deal.II/grid_transform.cc
tests/deal.II/grid_transform_3d.cc
tests/deal.II/intergrid_constraints.cc
tests/deal.II/intergrid_map.cc
tests/deal.II/interpolate_boundary_values_01.cc
tests/deal.II/interpolate_dgq_01.cc
tests/deal.II/interpolate_dgq_02.cc
tests/deal.II/interpolate_q_01.cc
tests/deal.II/interpolate_q_02.cc
tests/deal.II/interpolate_q_system_01.cc
tests/deal.II/interpolate_q_system_02.cc
tests/deal.II/line_coarsening_3d.cc
tests/deal.II/matrices.cc
tests/deal.II/maximal_cell_diameter.cc
tests/deal.II/measure_et_al.cc
tests/deal.II/mg_dof_handler.cc
tests/deal.II/minimal_cell_diameter.cc
tests/deal.II/normals_at_vertices.cc
tests/deal.II/project_boundary_rt_01.cc
tests/deal.II/project_common.cc
tests/deal.II/sparsity_pattern.cc
tests/deal.II/sparsity_pattern_01.cc
tests/deal.II/sparsity_pattern_01_x.cc
tests/deal.II/sparsity_pattern_02.cc
tests/deal.II/sparsity_pattern_03.cc
tests/deal.II/sparsity_pattern_04.cc
tests/deal.II/sparsity_pattern_05.cc
tests/deal.II/sparsity_pattern_05_x.cc
tests/deal.II/sparsity_pattern_x.cc
tests/deal.II/subdomain_ids.cc
tests/deal.II/support_point_map.cc
tests/deal.II/union_triangulation.cc
tests/deal.II/vectors_boundary_rhs_01.cc
tests/deal.II/vectors_boundary_rhs_02.cc
tests/deal.II/vectors_boundary_rhs_03.cc
tests/deal.II/vectors_point_source_01.cc
tests/deal.II/vectors_rhs_01.cc
tests/deal.II/vectors_rhs_03.cc

index edf7b20f1bfbeb094e8defc19e657e8a56c87e4e..753f0dbb2d94488d2622f61754eff6fa48c7c675 100644 (file)
@@ -353,7 +353,7 @@ void LaplaceProblem<Vector,Matrix,Sparsity>::run ()
 int main () 
 {
   std::ofstream logfile("block_matrices/output");
-  logfile.precision(2);
+  deallog << std::setprecision(2);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
@@ -418,7 +418,7 @@ int main ()
     Assert (solutions[i].size() == solutions[i].size(),
            ExcInternalError());
   
-  logfile.precision(16);
+  deallog << std::setprecision(16);
   for (unsigned int i=1; i<n_datasets; ++i)
     {
                                       // relative accuracy. data set
index 0e16b5200bf3e24e4d828f4d46e0be3fd9775172..545ab447df7cb17daac5fb8f069fcbebcfa6529e 100644 (file)
@@ -168,8 +168,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("boundaries/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 81278296167ec0abba2519d0b6fb74dfc5785491..b42968fbd6dcf0a310373ee8dc048713bf8807fc 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2005, 2006, 2007 by the deal.II authors
+//    Copyright (C) 2005, 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
@@ -65,8 +65,8 @@ void test ()
 int main ()
 {
   std::ofstream logfile("constraint_graph/output");
-  logfile.precision(2);
-  
+  logfile << std::setprecision(2);
+  deallog << std::setprecision(2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);  
index 7b0f940ae82230b409c922991b35edc612b10f38..f254ebdba15d05f4962a5a34a47943d8ada08ded 100644 (file)
@@ -293,7 +293,8 @@ void merge_check ()
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
+  logfile << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 82bac7cd19028a64e810a52d125af5ab59aff93d..4f4f859fca55610a468bcd2a504b163f3e3f5be0 100644 (file)
@@ -119,8 +119,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_laplace_matrix_01/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 015632d79c6f6514cc037da335d8a1dc84cf922f..4205cb1c38b9be722c0c261d905570509d94896c 100644 (file)
@@ -121,8 +121,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_laplace_matrix_02/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index a8ba3615a5759457e4a9c5633b2df79e58698b78..95158187565a9b4225f4bbd2acfbd04fa9af596e 100644 (file)
@@ -119,8 +119,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_laplace_matrix_03/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 40f4fabaae678a24014cdaf5fab48f6a88befa6d..77bcf10da0baf9076890d3a4d38b40f66f907a23 100644 (file)
@@ -121,8 +121,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_laplace_matrix_04/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 614b08c0ab5cd18219f0450251c60de58c94c42c..e054cc6adc52bdc4ad0b78c4698455478d4631eb 100644 (file)
@@ -119,8 +119,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_mass_matrix_01/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index c035063c9b2c3fc9aab083bea13a8e73b73fe236..be691e8ed49143cb5f958b12b900d8842e64c3e5 100644 (file)
@@ -121,8 +121,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_mass_matrix_02/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 8f55e35d5af7abaf9d24423ee12959be33ff7618..e0c48103ceff557b5292dc808b7e262122663b2d 100644 (file)
@@ -119,8 +119,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_mass_matrix_03/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index cdadb5a53e9f030a28cf3728288b99f35b2a4a86..88261022304d402bd16e5d263084bb15c9fe81d0 100644 (file)
@@ -121,8 +121,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("create_mass_matrix_04/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index c566673dfb4458617e53e5e71db85e71a5bcf7b2..c3266edbc5c1d972c04e68722e35530bb2c4f520 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 2007 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2002, 2003, 2004, 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
@@ -263,7 +263,8 @@ void LaplaceProblem<dim>::run ()
 int main () 
 {
   deallog.depth_console (0);
-  logfile.precision(2);
+  logfile << std::setprecision(2);
+  deallog << std::setprecision(2);
   
   LaplaceProblem<2> laplace_problem_2d;
   laplace_problem_2d.run ();
index 13513e3704f3111032fe33dc9f3c0e4a0369ca18..df83125b2ccdd8fc5cf5a59ac5fbf14ab459457f 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2000, 2001, 2004 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2004, 2008 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -77,8 +77,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("derivative_approximation/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 96f421a9699e38535743930bd112c8c5c7242683..38e184d5ee05ecd530c042e5e9e516112750dc54 100644 (file)
@@ -32,7 +32,7 @@
 #include <fe/mapping_q1.h>
 #include <fe/fe_values.h>
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 using namespace std;
 
index 18c7c3232af72d1d5ea00d2b3b5e4407252b51af..7d151f9ef35e1c99cd9ebcb899caad49169bf08c 100644 (file)
@@ -213,8 +213,8 @@ void loop ()
 int main ()
 {
   std::ofstream logfile ("derivatives/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   if (!errors) deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index c7799a797863a6b9da0e5417c97a37182437a0a6..a965a5dbfb49b95045770a9117b85d69c7470ef9 100644 (file)
@@ -177,8 +177,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("dof_renumbering/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 9b4533e63d80332cfaae6de699e3a18584c1a0af..ea878520c6abad5b04c6baa91323ca440d3bad4c 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2000, 2001, 2003, 2004, 2007 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2003, 2004, 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
@@ -159,8 +159,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("dof_renumbering_02/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 99252906e5cbba48f5a5d2050896234878dd1848..f92c13d955249c07817a702b2f08c3e7c84549f4 100644 (file)
@@ -115,8 +115,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("error_estimator/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 8d71253609a95979f405b2a08909ad45f57fdc02..42b8dffb7b096ac2b6dbc51da4c255d0b37343fa 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005 by the deal.II authors
+//    Copyright (C) 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
@@ -28,6 +28,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
+#include <iomanip>
 
 
 std::ofstream logfile("face_orientations_3d/output");
@@ -72,7 +73,7 @@ void test (const char *filename)
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index dade1d71d6ce3586486fb820df9263474e15978d..810514c9739dfec7b0d7ef510c3325608f430370 100644 (file)
@@ -104,8 +104,8 @@ int main()
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
 
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
+  deallog << std::setprecision(4);
+  deallog << std::fixed;
   
   deallog.push("GeometryInfo");
 
index b2be8095c3e01b5abe871e1cc501e730b5acf5c9..73141c7c5daea4324ea85d69c254bc01049e7fca 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
@@ -23,6 +23,7 @@
 #include <grid/filtered_iterator.h>
 
 #include <fstream>
+#include <iomanip>
 #include <algorithm>
 #include <numeric>
 #include <cmath>
@@ -218,7 +219,7 @@ void test ()
 
 int main ()
 {
-  logfile.precision(4);
+  deallog << std::setprecision(4);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 19e245e22d307a4845ec22da9e5a903f141f2012..4956409096d6a720420361fce92e6f4dd39c84f7 100644 (file)
@@ -200,8 +200,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("filtered_matrix/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index c26c20cc81837b413db85d03ad832cb926dac71b..b852467592c9414a837866a998274b170a06fed3 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2007 by the deal.II authors
+//    Copyright (C) 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
@@ -24,6 +24,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <iomanip>
 
 std::ofstream logfile("grid_generator_01/output");
 
index 7a45b208900e55f3074282e1e5a1fb775277b045..7d8c0458f42dc4603a60b60d2cf507fa3ea47f1a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2007 by the deal.II authors
+//    Copyright (C) 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
@@ -25,6 +25,7 @@
 
 #include <fstream>
 #include <iostream>
+#include <iomanip>
 
 std::ofstream logfile("grid_hyper_shell/output");
 
index ddd603637ac10d25e97d6f36367c3617806a8be0..b3b7b62085a02525d5936140d0cbf951533d6639 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005, 2007 by the deal.II authors
+//    Copyright (C) 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
@@ -25,6 +25,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
+#include <iomanip>
 #include <string>
 
 std::ofstream logfile("grid_in/output");
@@ -108,7 +109,8 @@ void filename_resolution()
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
+  logfile << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index e7e1660be7ca65350a3e9b9608bbcf61c9414a84..da7a6f8254f7f72ba4a3fc10dd464a7d955f0fa3 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005 by the deal.II authors
+//    Copyright (C) 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
@@ -29,7 +29,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
-
+#include <iomanip>
 
 std::ofstream logfile("grid_in_3d/output");
 
@@ -85,7 +85,7 @@ void test1()
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index eab51a8846ede2043ad89fc45dfdc0ec37dbcea2..e936cbac76bc45335c2f9a666659b998dfccfa2e 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2002, 2003, 2004, 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
@@ -25,6 +25,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
+#include <iomanip>
 #include <string>
 
 std::ofstream logfile("grid_in_msh/output");
@@ -55,7 +56,8 @@ void filename_resolution()
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
+  logfile << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 78116afdd87da495f6df8906c6e16a7076532fce..561be99c3b9f9aadfb0cf3955651569c36e1719b 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005, 2007 by the deal.II authors
+//    Copyright (C) 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
@@ -19,6 +19,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
+#include <iomanip>
 #include <string>
 
 std::ofstream logfile("grid_in_tecplot/output");
index 0a62e06ceb5864f8e0033074e2fb16b1ae4a3032..0a941cc8af9e57ed84a5d422c14bc92599e549df 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005, 2007 by the deal.II authors
+//    Copyright (C) 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
@@ -22,6 +22,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
+#include <iomanip>
 
 
 std::ofstream logfile("grid_out/output");
@@ -58,7 +59,8 @@ void test ()
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
+  logfile << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index df43aadc88d940a1345e18564fa71f652da7848a..a0ac105f063588d9d1d0a47416f32e7947754acc 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005 by the deal.II authors
+//    Copyright (C) 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
@@ -28,6 +28,7 @@
 #include <base/logstream.h>
 
 #include <fstream>
+#include <iomanip>
 
 
 std::ofstream logfile("grid_out_02/output");
@@ -56,7 +57,8 @@ void test ()
 
 int main ()
 {
-  logfile.precision (2);
+  deallog << std::setprecision (2);
+  logfile << std::setprecision (2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 5b76c537b944d1986ca2ef3806a0321d427f507d..cee9434a69215a656ad518f7b983ab5cbff98982 100644 (file)
@@ -24,7 +24,7 @@
 #include <grid/grid_in.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 
 template<int dim>
index 29975bee02b49ec1c83ea667f48d0068a37b2883..d9cf10d17b60a741a85b739319896f13d7e920a3 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
@@ -24,6 +24,7 @@
 #include <cstdlib>
 
 #include <fstream>
+#include <iomanip>
 #include <cstdio>
 
 std::ofstream logfile("grid_test/output");
@@ -268,7 +269,8 @@ void test (const int test_case)
 
 int main ()
 {
-  logfile.precision(2);
+  deallog << std::setprecision(2);
+  logfile << std::setprecision(2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index d4fe53e2ad5d9f197106360cbf6628d36fe95bce..1048d7be9b0365b8819f7abe5cddb6ccdf5484a6 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2001, 2002, 2003, 2004, 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
@@ -20,7 +20,7 @@
 #include <grid/grid_out.h>
 
 #include <fstream>
-
+#include <iomanip>
 
 std::ofstream logfile("grid_tools/output");
 
@@ -90,7 +90,8 @@ void test2 ()
 
 int main ()
 {
-  logfile.precision(4);
+  deallog << std::setprecision(4);
+  logfile << std::setprecision(4);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index c10bbe5eecce898dad65d399e17fd9ca39ed0783..b432bb30334c9d6346cd50eec49a7428e142439b 100644 (file)
@@ -23,7 +23,7 @@
 #include <fe/mapping_q.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 
 int main ()
index 08113a3aca18229f83d75bd143f80908267df681..c08aa9343f61d36f580e41fee62b0b0d683d203f 100644 (file)
@@ -24,7 +24,7 @@
 #include <grid/grid_out.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 
 
 int main ()
index 2810b71023d93ac168ad729d41250170b54c9b82..95d74ef8023301cf0ba141ffb747ee5cf8c6290d 100644 (file)
@@ -224,8 +224,8 @@ void check ()
 
 int main ()
 {
-  logfile.precision(2);
-  
+  deallog << std::setprecision(2);
+  logfile << std::setprecision(2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 3335c04eb629cdc4bceeba4d755eab5ff92f13ad..c9a1f5f102897f4122c1da26be77e88a4c0fb031 100644 (file)
@@ -103,7 +103,7 @@ void check ()
 int main ()
 {
   std::ofstream logfile("intergrid_map/output");
-  logfile.precision(2);
+  deallog << std::setprecision(2);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index 977831c062d9c0947226a8f2273ed61f0ef30068..d9e2ee3ac24a782d3d4c8c165ccebc350cc37a54 100644 (file)
@@ -39,7 +39,7 @@
 #include <fe/fe_raviart_thomas.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <vector>
 
 
index 0061a59fddc4bf49c61bf590d23cf0f42d597471..5cfda5796806338366baec6234f9d510834e9518 100644 (file)
@@ -104,7 +104,7 @@ void test ()
 int main ()
 {
   std::ofstream logfile("interpolate_dgq_01/output");
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index d52d3a43d206be6796bd6cbd12bef4ead4f28eee..1d0755af06644b6148eb066e494cee49cb48f0af 100644 (file)
@@ -114,7 +114,7 @@ void test ()
 int main ()
 {
   std::ofstream logfile("interpolate_dgq_02/output");
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index dc5e275021ffe7763820170b79766b731f449fc7..d7432e38573c1ab85e01958fdf12a01da1a8464b 100644 (file)
@@ -104,7 +104,7 @@ void test ()
 int main ()
 {
   std::ofstream logfile("interpolate_q_01/output");
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index 88d6c5f291d60cb6652dac4f87d8f442356fdf79..ada8014229da826ddb9669ec53a0ef55f62a3177 100644 (file)
@@ -114,7 +114,7 @@ void test ()
 int main ()
 {
   std::ofstream logfile("interpolate_q_02/output");
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index 52ee1834cd20ab1cbd926405a706cc859d5233d8..539807d59d074da7179de6a9f5099be3839d1fc1 100644 (file)
@@ -110,7 +110,7 @@ void test ()
 int main ()
 {
   std::ofstream logfile("interpolate_q_system_01/output");
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index 217df6ea1422e6669d4e2882e174df5fd3cf5011..4eed9cb3d59ce3af4e5674d6d0f5d05118480926 100644 (file)
@@ -119,7 +119,7 @@ void test ()
 int main ()
 {
   std::ofstream logfile("interpolate_q_system_02/output");
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index bd6dc8510dc25ffaf1e577fdfbc82e1561848eb4..c76c39b013c5db39fb7db15250f9f360e9b95618 100644 (file)
@@ -20,7 +20,7 @@
 #include <grid/grid_out.h>
 
 #include <fstream>
-#include <iostream>
+#include <iomanip>
 #include <iomanip>
 
 
index 2592e86764295091192114be13897355922ac95f..b13be4c08694a36fc4d5c1f41d98503cdf81be6a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2000, 2001, 2003, 2004, 2007 by the deal.II authors
+//    Copyright (C) 2000, 2001, 2003, 2004, 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
@@ -203,8 +203,10 @@ check ()
 int main ()
 {
   std::ofstream logfile ("matrices/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  logfile << std::setprecision (2);
+  logfile << std::fixed;  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 08816e745fb961e484dcbf1ecb5e44023573d396..4600bfd88a125b4b106578be8d0b99920fc9a42b 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2001, 2002, 2003, 2004, 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
@@ -20,6 +20,7 @@
 #include <grid/grid_out.h>
 
 #include <fstream>
+#include <iomanip>
 
 
 std::ofstream logfile("maximal_cell_diameter/output");
@@ -73,7 +74,7 @@ void test1 ()
 
 int main ()
 {
-  logfile.precision(4);
+  deallog << std::setprecision(4);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 03b9c9bcb5e2675279b7104798d769ac9e0659e3..a13bf80e201942d8af2f7da4e3b34af53f905ffa 100644 (file)
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (C) 2005, 2006 by the deal.II authors
+// Copyright (C) 2005, 2006, 2008 by the deal.II authors
 //
 // Computes measure, center and barycenter on a variety of cells
 
@@ -9,6 +9,7 @@
 #include <grid/tria_accessor.h>
 #include <grid/grid_generator.h>
 #include <fstream>
+#include <iomanip>
 
 #define PRECISION 5
 
@@ -92,7 +93,7 @@ void test()
 int main()
 {
   std::ofstream logfile ("measure_et_al/output");
-  logfile.precision (PRECISION);
+  deallog << std::setprecision (PRECISION);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 7a65744ea0660bb0639572325c06133c1478523c..f2a8cb687a5fd59b110bc0a03080d622ae48beb7 100644 (file)
@@ -31,7 +31,7 @@
 int main ()
 {
   std::ofstream logfile("mg_dof_handler/output");
-  logfile.precision(2);
+  deallog << std::setprecision(2);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index 717f2b50f3e47fcf84af4a8f275995dced051a52..eed60526d3fec6ff686552da96997482215cdb4a 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2001, 2002, 2003, 2004, 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
@@ -20,6 +20,7 @@
 #include <grid/grid_out.h>
 
 #include <fstream>
+#include <iomanip>
 
 
 std::ofstream logfile("minimal_cell_diameter/output");
@@ -67,7 +68,7 @@ void test1 ()
 
 int main ()
 {
-  logfile.precision(4);
+  deallog << std::setprecision(4);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 08c67485fc06a1269969c5b9beefb38ff4bbaef7..303a6372e43a7297b4f828c2e16afeabb9502bc7 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
@@ -26,6 +26,7 @@
 #include <grid/grid_generator.h>
 
 #include <fstream>
+#include <iomanip>
 
 
 
@@ -56,8 +57,8 @@ void create_triangulation(const unsigned int case_no,
 int main ()
 {
   std::ofstream logfile ("normals_at_vertices/output");
-  logfile.precision (3);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (3);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 5296102486b3cbb063d08423db23f51ed167da59..56be52a0287b08219a5181f75a08b961e588b21e 100644 (file)
@@ -175,8 +175,8 @@ void test_hyper_cube(const FiniteElement<dim>& fe)
 int main()
 {
   std::ofstream logfile ("project_boundary_rt_01/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
   deallog.threshold_double(1.e-12);
index 4428bb3b905d541d0b3fec3303200557dc2c5dfe..6ad5ad3d73a694717d7117c14bc2e3cefbe3e408 100644 (file)
@@ -344,7 +344,7 @@ void test_with_2d_deformed_refined_mesh (const FiniteElement<dim> &fe,
 int main ()
 {
   std::ofstream logfile(logname);
-  logfile.precision (3);
+  deallog << std::setprecision (3);
   
   deallog.attach(logfile);
   deallog.depth_console(0);
index fb9b8decbbda65830e6d1dd97c9f4186d3f2bbe4..54ec5721cbb8d94dde37444ca1fa4a2c56e9af38 100644 (file)
@@ -226,8 +226,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 69974e0d7523ef7c2442d92f17409aca34cfb1c5..f37af63b31d5d936cc7a708ae8fb50cde3c92263 100644 (file)
@@ -226,8 +226,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_01/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 6c3348a204df5af443b461dd09afa8212408fbc2..aeef4245506232f5b3a24601b72ad78bfcd588b9 100644 (file)
@@ -226,8 +226,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_01_x/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 1d2fd06e49fcb06059975c39bc43ee69b250cf43..7d490acfcb46bd88b06f8646ae90881f29c015a5 100644 (file)
@@ -93,8 +93,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_02/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index d73d45cc64f843d2e1e9b60b7547405838fb982b..8a24b1159e94a9919ff3cd6ae4ff78fe50e6e535 100644 (file)
@@ -96,8 +96,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_03/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 62b1f09f1a81aa2927d47f597cf68733b8ddb202..0dc38f581f170edba777809e10cc3cf6c25c810f 100644 (file)
@@ -98,8 +98,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_04/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 48bd8596e05393a672b8289e05b5f9b2518257be..98b533dfbe89cc2984f866be4c1d1a342fc6e468 100644 (file)
@@ -183,8 +183,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_05/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index eaaf82386334a8b955388828ad3048785900b824..b6cc981756339612399076a28cb0fba99222eb8a 100644 (file)
@@ -183,8 +183,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_05_x/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 260e7de35520d943d408748af05620a3351e02a3..2b29eb916c58bbd3d6c2c0174d2c73690a050158 100644 (file)
@@ -226,8 +226,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("sparsity_pattern_x/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 3b710e3cb441ee7979ab5da300f048cf14b1b611..3663dc0c74b041660701672c764ec82d413cf382 100644 (file)
@@ -175,7 +175,7 @@ void test ()
 
 int main ()
 {
-  logfile.precision(4);
+  deallog << std::setprecision(4);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index e41e7a6f12e3b66910b8df97787bacebeb6e057e..666c84a0657c28fe4c7fbe36f27efa1e4b023321 100644 (file)
@@ -125,8 +125,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("support_point_map/output");
-  logfile.precision (2);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (2);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 17a75e99f4b50cf32b168b469371bf7514a01bfb..a64c96b30d24374b60b367ad07bd8057851f24b0 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
@@ -25,6 +25,7 @@
 #include <cstdlib>
 
 #include <fstream>
+#include <iomanip>
 #include <cstdio>
 
 std::ofstream logfile("union_triangulation/output");
@@ -67,7 +68,8 @@ void test ()
 
 int main ()
 {
-  logfile.precision(2);
+  deallog << std::setprecision(2);
+  logfile << std::setprecision(2);
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
index 157678b4b703b36002d55ee4ebcad0ff15f6896b..23a58191ba7719ea3f8f5eca9a8d36ed616f36f9 100644 (file)
@@ -101,8 +101,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("vectors_boundary_rhs_01/output");
-  logfile.precision (4);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (4);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index cfa0f266e20373599e1496580390ef72d26aa6ed..b639b8bb1584a9440100f4c7a355398c3bb04716 100644 (file)
@@ -103,8 +103,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("vectors_boundary_rhs_02/output");
-  logfile.precision (4);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (4);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index b9e8b15d8ef60c4d0eec6e1648a1881dde8ab04a..922204969fa37dd12a620f13b7b5d13e8d89dbca 100644 (file)
@@ -101,8 +101,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("vectors_boundary_rhs_03/output");
-  logfile.precision (4);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (4);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index 9a041b10073fa9bd843b6c521c076dc78140464e..909739fc4c6cc0ffe75408fce8ed120f7962754e 100644 (file)
@@ -98,8 +98,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("vectors_point_source_01/output");
-  logfile.precision (4);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (4);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index b19f851d33a7d48aa3e18709c823eae1538ee05f..7e270a2a0d9f80ce151c3f6a2504bf0d94b7d917 100644 (file)
@@ -101,8 +101,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("vectors_rhs_01/output");
-  logfile.precision (4);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (4);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 
index cb7b430d09c87a665e171295a6d65f8bf2f483d2..339e76dfa2abd09ee1e00764dbf1f4feabc7bc1d 100644 (file)
@@ -100,8 +100,8 @@ check ()
 int main ()
 {
   std::ofstream logfile ("vectors_rhs_03/output");
-  logfile.precision (4);
-  logfile.setf(std::ios::fixed);  
+  deallog << std::setprecision (4);
+  deallog << std::fixed;  
   deallog.attach(logfile);
   deallog.depth_console (0);
 

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.