From: kanschat Date: Tue, 5 Feb 2008 23:16:23 +0000 (+0000) Subject: adjust to new Logstream X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1992f8d5c03c032e232f452d3daf6bd304389737;p=dealii-svn.git adjust to new Logstream git-svn-id: https://svn.dealii.org/trunk@15714 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/fe/abf_01.cc b/tests/fe/abf_01.cc index 2e132d096f..e8026c7546 100644 --- a/tests/fe/abf_01.cc +++ b/tests/fe/abf_01.cc @@ -2,7 +2,7 @@ // abf_01.cc,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006 by the deal.II authors +// Copyright (C) 2003, 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 @@ -582,8 +582,10 @@ int create_alternate_unitsquare (Triangulation<2> &tria) int main (int /*argc*/, char **/*argv*/) { std::ofstream logfile ("abf_01/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; + logfile << std::setprecision(PRECISION); + logfile << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/check_derivatives.cc b/tests/fe/check_derivatives.cc index 33e61614f1..bbf3b704ce 100644 --- a/tests/fe/check_derivatives.cc +++ b/tests/fe/check_derivatives.cc @@ -125,8 +125,8 @@ int main() { std::ofstream logfile ("check_derivatives/output"); - logfile.precision (2); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(2); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); diff --git a/tests/fe/copy_01.cc b/tests/fe/copy_01.cc index d816688840..e5966f49bd 100644 --- a/tests/fe/copy_01.cc +++ b/tests/fe/copy_01.cc @@ -44,8 +44,8 @@ int main() { std::ofstream logfile ("copy_01/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/deformed_projection.h b/tests/fe/deformed_projection.h index 5b7ffa7228..e32e880c8f 100644 --- a/tests/fe/deformed_projection.h +++ b/tests/fe/deformed_projection.h @@ -2,7 +2,7 @@ // deformed_projection.h,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006, 2007 by the deal.II authors +// Copyright (C) 2003, 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 @@ -685,6 +685,8 @@ int main (int /*argc*/, char **/*argv*/) std::ofstream logfile (logname); logfile.precision (PRECISION); logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/derivatives.cc b/tests/fe/derivatives.cc index f079945435..b6fc168e70 100644 --- a/tests/fe/derivatives.cc +++ b/tests/fe/derivatives.cc @@ -133,8 +133,8 @@ 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); deallog.depth_console(0); diff --git a/tests/fe/derivatives_face.cc b/tests/fe/derivatives_face.cc index abd3f02b9c..5237ca2594 100644 --- a/tests/fe/derivatives_face.cc +++ b/tests/fe/derivatives_face.cc @@ -95,8 +95,8 @@ int main() { std::ofstream logfile ("derivatives_face/output"); - logfile.precision (2); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(2); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); diff --git a/tests/fe/dgp_monomial_1.cc b/tests/fe/dgp_monomial_1.cc index 3e19b73569..9e295aa94e 100644 --- a/tests/fe/dgp_monomial_1.cc +++ b/tests/fe/dgp_monomial_1.cc @@ -59,8 +59,8 @@ int main() { std::ofstream logfile ("dgp_monomial_1/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/dgp_monomial_2.cc b/tests/fe/dgp_monomial_2.cc index 459c399d48..d9448d9b65 100644 --- a/tests/fe/dgp_monomial_2.cc +++ b/tests/fe/dgp_monomial_2.cc @@ -61,8 +61,8 @@ int main() { std::ofstream logfile ("dgp_monomial_2/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/dgq_1.cc b/tests/fe/dgq_1.cc index 256b1ea15c..d3b8d9bfc3 100644 --- a/tests/fe/dgq_1.cc +++ b/tests/fe/dgq_1.cc @@ -61,8 +61,8 @@ int main() { std::ofstream logfile ("dgq_1/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/injection_common.h b/tests/fe/injection_common.h index cc6d8eaa9f..935ba2c680 100644 --- a/tests/fe/injection_common.h +++ b/tests/fe/injection_common.h @@ -2,7 +2,7 @@ // $Id: injection_common.cc 12732 2006-03-28 23:15:45Z wolf $ // 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 @@ -116,7 +116,7 @@ void do_check (const FiniteElement &coarse_fe, int main () { std::ofstream logfile(logname); - logfile.precision (3); + deallog << std::setprecision (3); deallog.attach(logfile); deallog.depth_console(0); diff --git a/tests/fe/mapping.cc b/tests/fe/mapping.cc index 0d4eab5607..2182e50d45 100644 --- a/tests/fe/mapping.cc +++ b/tests/fe/mapping.cc @@ -1,5 +1,5 @@ // mapping.cc,v 1.19 2004/01/30 09:56:19 hartmann Exp -// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Ralf Hartmann +// Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008 Ralf Hartmann // // Shows the shape functions implemented and computes the area of cells. @@ -21,8 +21,8 @@ #include #include #include +#include #include - #include #define PRECISION 2 @@ -556,7 +556,7 @@ void mapping_test() int main() { std::ofstream logfile ("mapping/output"); - logfile.precision (PRECISION); + deallog << std::setprecision(PRECISION); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/mapping_c1.cc b/tests/fe/mapping_c1.cc index a5a4146913..6a62ac787d 100644 --- a/tests/fe/mapping_c1.cc +++ b/tests/fe/mapping_c1.cc @@ -1,5 +1,5 @@ // mapping_c1.cc,v 1.5 2003/04/09 15:49:55 wolf Exp -// Copyright (C) 2001, 2003, 2005 Wolfgang Bangerth +// Copyright (C) 2001, 2003, 2005, 2008 Wolfgang Bangerth // // Test the continuity of normal vectors at vertices, and thus the // C1-ness of the C1-mapping @@ -17,14 +17,15 @@ #include #include +#include #define PRECISION 2 int main () { std::ofstream logfile ("mapping_c1/output"); - logfile.setf(std::ios::fixed); - logfile.precision (PRECISION); + deallog << std::fixed; + deallog << std::setprecision(PRECISION) << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/mapping_q1_eulerian.cc b/tests/fe/mapping_q1_eulerian.cc index f36fff8dfb..bf02e4dc04 100644 --- a/tests/fe/mapping_q1_eulerian.cc +++ b/tests/fe/mapping_q1_eulerian.cc @@ -90,8 +90,8 @@ int main() { std::ofstream logfile ("mapping_q1_eulerian/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); diff --git a/tests/fe/mapping_q_eulerian.cc b/tests/fe/mapping_q_eulerian.cc index cba0658aa5..db89a6b096 100644 --- a/tests/fe/mapping_q_eulerian.cc +++ b/tests/fe/mapping_q_eulerian.cc @@ -232,8 +232,8 @@ void MappingTest::graphical_output () int main () { std::ofstream logfile ("mapping_q_eulerian/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); diff --git a/tests/fe/nedelec.cc b/tests/fe/nedelec.cc index 2287108432..6bc475ab02 100644 --- a/tests/fe/nedelec.cc +++ b/tests/fe/nedelec.cc @@ -146,8 +146,8 @@ int main() { std::ofstream logfile ("nedelec/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/nedelec_2.cc b/tests/fe/nedelec_2.cc index 1d4cdf3e63..c2b1e2dd3d 100644 --- a/tests/fe/nedelec_2.cc +++ b/tests/fe/nedelec_2.cc @@ -108,8 +108,8 @@ int main() { std::ofstream logfile ("nedelec_2/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/nedelec_3.cc b/tests/fe/nedelec_3.cc index b1c113c893..9fa541be89 100644 --- a/tests/fe/nedelec_3.cc +++ b/tests/fe/nedelec_3.cc @@ -102,8 +102,8 @@ int main() { std::ofstream logfile ("nedelec_3/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/numbering.cc b/tests/fe/numbering.cc index 3c25262788..54f45c5343 100644 --- a/tests/fe/numbering.cc +++ b/tests/fe/numbering.cc @@ -234,8 +234,8 @@ void check_dim () int main () { - logfile.precision (2); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(2); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console (0); diff --git a/tests/fe/q_1.cc b/tests/fe/q_1.cc index 0adedac37b..ce2aeb4db9 100644 --- a/tests/fe/q_1.cc +++ b/tests/fe/q_1.cc @@ -53,8 +53,8 @@ int main() { std::ofstream logfile ("q_1/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/q_2.cc b/tests/fe/q_2.cc index 8e2646861a..d831d9d30f 100644 --- a/tests/fe/q_2.cc +++ b/tests/fe/q_2.cc @@ -59,8 +59,8 @@ int main() { std::ofstream logfile ("q_2/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/q_3.cc b/tests/fe/q_3.cc index 3bb90e7f9c..6f708b658a 100644 --- a/tests/fe/q_3.cc +++ b/tests/fe/q_3.cc @@ -57,8 +57,8 @@ int main() { std::ofstream logfile ("q_3/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/q_4.cc b/tests/fe/q_4.cc index dd09756a6b..0b40b7f444 100644 --- a/tests/fe/q_4.cc +++ b/tests/fe/q_4.cc @@ -61,8 +61,8 @@ int main() { std::ofstream logfile ("q_4/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_1.cc b/tests/fe/rt_1.cc index 0bc7afecb9..b7750bf6d2 100644 --- a/tests/fe/rt_1.cc +++ b/tests/fe/rt_1.cc @@ -84,8 +84,8 @@ int main() { std::ofstream logfile ("rt_1/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_10.cc b/tests/fe/rt_10.cc index 2d88119907..25ae558d52 100644 --- a/tests/fe/rt_10.cc +++ b/tests/fe/rt_10.cc @@ -83,8 +83,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_11.cc b/tests/fe/rt_11.cc index a0c1355872..8a9efd8416 100644 --- a/tests/fe/rt_11.cc +++ b/tests/fe/rt_11.cc @@ -89,8 +89,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_12.cc b/tests/fe/rt_12.cc index be946f79fb..c68f33de4d 100644 --- a/tests/fe/rt_12.cc +++ b/tests/fe/rt_12.cc @@ -82,8 +82,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_13.cc b/tests/fe/rt_13.cc index 55a4b05940..736cf6cd26 100644 --- a/tests/fe/rt_13.cc +++ b/tests/fe/rt_13.cc @@ -87,8 +87,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_14.cc b/tests/fe/rt_14.cc index 3aeff2cff1..e22cf651e2 100644 --- a/tests/fe/rt_14.cc +++ b/tests/fe/rt_14.cc @@ -87,8 +87,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_15.cc b/tests/fe/rt_15.cc index 8a9c233580..38723fd3f4 100644 --- a/tests/fe/rt_15.cc +++ b/tests/fe/rt_15.cc @@ -87,8 +87,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_2.cc b/tests/fe/rt_2.cc index 25067b99df..1c568bb305 100644 --- a/tests/fe/rt_2.cc +++ b/tests/fe/rt_2.cc @@ -162,8 +162,8 @@ int main() { std::ofstream logfile ("rt_2/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_3.cc b/tests/fe/rt_3.cc index 2ee3da16af..99e3ebbf06 100644 --- a/tests/fe/rt_3.cc +++ b/tests/fe/rt_3.cc @@ -50,8 +50,8 @@ int main() { std::ofstream logfile ("rt_3/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_5.cc b/tests/fe/rt_5.cc index 0c20aa99b7..69caa45dc2 100644 --- a/tests/fe/rt_5.cc +++ b/tests/fe/rt_5.cc @@ -54,8 +54,8 @@ int main() { std::ofstream logfile ("rt_5/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_7.cc b/tests/fe/rt_7.cc index 294bbaf3f4..9af0a16d87 100644 --- a/tests/fe/rt_7.cc +++ b/tests/fe/rt_7.cc @@ -73,8 +73,8 @@ int main() { std::ofstream logfile ("rt_7/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_8.cc b/tests/fe/rt_8.cc index e7670b7d6a..911b6e2cd7 100644 --- a/tests/fe/rt_8.cc +++ b/tests/fe/rt_8.cc @@ -92,8 +92,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_9.cc b/tests/fe/rt_9.cc index 3a49ec0fd4..438e9ed685 100644 --- a/tests/fe/rt_9.cc +++ b/tests/fe/rt_9.cc @@ -88,8 +88,8 @@ test (const unsigned int degree) int main() { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_approximation_01.cc b/tests/fe/rt_approximation_01.cc index c9da7bd5b6..0560bdf599 100644 --- a/tests/fe/rt_approximation_01.cc +++ b/tests/fe/rt_approximation_01.cc @@ -2,7 +2,7 @@ // rt_approximation_01.cc,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006, 2007 by the deal.II authors +// Copyright (C) 2003, 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 @@ -431,8 +431,10 @@ double TestProjection (Mapping<2> &mapping, int main () { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; + logfile << std::setprecision(PRECISION); + logfile << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rt_normal_02.cc b/tests/fe/rt_normal_02.cc index e5fa58fbcf..dae083e7f1 100644 --- a/tests/fe/rt_normal_02.cc +++ b/tests/fe/rt_normal_02.cc @@ -257,8 +257,8 @@ void EvaluateNormal (DoFHandler<2> *dof_handler, int main (int /*argc*/, char **/*argv*/) { - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rtn_2.cc b/tests/fe/rtn_2.cc index 15301ab588..a5a5e6a60b 100644 --- a/tests/fe/rtn_2.cc +++ b/tests/fe/rtn_2.cc @@ -2,7 +2,7 @@ // rtn_2.cc,v 1.3 2003/06/09 16:00:38 wolf Exp // Version: // -// Copyright (C) 2003, 2005, 2006 by the deal.II authors +// Copyright (C) 2003, 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 @@ -72,8 +72,7 @@ int main() { std::ofstream logfile ("rtn_2/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION) << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/rtn_3.cc b/tests/fe/rtn_3.cc index 74a1bd2f3c..5f60b6ab15 100644 --- a/tests/fe/rtn_3.cc +++ b/tests/fe/rtn_3.cc @@ -47,8 +47,8 @@ int main() { std::ofstream logfile ("rtn_3/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/shapes.cc b/tests/fe/shapes.cc index d1a270cb5d..5a272f7762 100644 --- a/tests/fe/shapes.cc +++ b/tests/fe/shapes.cc @@ -669,8 +669,7 @@ int main() { std::ofstream logfile ("shapes/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION) << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/system_1.cc b/tests/fe/system_1.cc index 3e706f2d4c..95f1a83976 100644 --- a/tests/fe/system_1.cc +++ b/tests/fe/system_1.cc @@ -75,8 +75,8 @@ int main() { std::ofstream logfile ("system_1/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/system_index.cc b/tests/fe/system_index.cc index 6901f13766..6e337bd945 100644 --- a/tests/fe/system_index.cc +++ b/tests/fe/system_index.cc @@ -147,8 +147,8 @@ int main() { std::ofstream logfile ("system_index/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/transfer.cc b/tests/fe/transfer.cc index 1bc86358be..4588dc8cfc 100644 --- a/tests/fe/transfer.cc +++ b/tests/fe/transfer.cc @@ -78,7 +78,7 @@ main() { std::ofstream logfile("transfer/output"); deallog.attach(logfile); - logfile.precision(3); + deallog << std::setprecision(3); deallog.depth_console(0); deallog.threshold_double(1.e-10); diff --git a/tests/fe/up_and_down.cc b/tests/fe/up_and_down.cc index 52d72662a3..34d62735d0 100644 --- a/tests/fe/up_and_down.cc +++ b/tests/fe/up_and_down.cc @@ -238,8 +238,8 @@ int main() { std::ofstream logfile ("up_and_down/output"); - logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + deallog << std::setprecision(PRECISION); + deallog << std::fixed; deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10);