From: kanschat Date: Sat, 29 Oct 2011 15:28:46 +0000 (+0000) Subject: why is this in there again? X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00443be50507f13ef17f84a8636d40b6bd4bcf06;p=dealii-svn.git why is this in there again? git-svn-id: https://svn.dealii.org/trunk@24689 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/block_info.cc b/tests/deal.II/block_info.cc index 0c5319b7e5..0c2892927a 100644 --- a/tests/deal.II/block_info.cc +++ b/tests/deal.II/block_info.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -80,11 +80,8 @@ void test_fe (const FiniteElement& fe) int main () { - std::string logname = JobIdentifier::base_name(__FILE__) + std::string("/output"); - std::ofstream logfile(logname.c_str()); - deallog.attach(logfile); - deallog.depth_console(0); - + initlog(__FILE__); + FE_Q<2> q21(1); FE_Q<2> q22(2); FESystem<2> s2(q21, 3, q22, 2); diff --git a/tests/deal.II/boundaries.cc b/tests/deal.II/boundaries.cc index 259cf575e8..782f9d8a0c 100644 --- a/tests/deal.II/boundaries.cc +++ b/tests/deal.II/boundaries.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2000, 2001, 2003, 2004, 2005, 2007, 2010 by the deal.II authors +// Copyright (C) 2000, 2001, 2003, 2004, 2005, 2007, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -167,11 +167,9 @@ check () int main () { - std::ofstream logfile ("boundaries/output"); + initlog(__FILE__); deallog << std::setprecision (2); deallog << std::fixed; - deallog.attach(logfile); - deallog.depth_console (0); deallog.push ("1d"); check<1> (); diff --git a/tests/deal.II/cell_similarity_crash_01.cc b/tests/deal.II/cell_similarity_crash_01.cc index 8b7af31672..46aa7d2780 100644 --- a/tests/deal.II/cell_similarity_crash_01.cc +++ b/tests/deal.II/cell_similarity_crash_01.cc @@ -67,11 +67,8 @@ void test() int main() { - std::ofstream logfile ("cell_similarity_crash_01/output"); + initlog(__FILE__); deallog << std::setprecision (4); - - deallog.attach(logfile); - deallog.depth_console (0); deallog.threshold_double(1.e-7); test<1>(); diff --git a/tests/deal.II/cell_similarity_crash_02.cc b/tests/deal.II/cell_similarity_crash_02.cc index d56924a52f..489920e45c 100644 --- a/tests/deal.II/cell_similarity_crash_02.cc +++ b/tests/deal.II/cell_similarity_crash_02.cc @@ -56,11 +56,8 @@ void test() int main() { - std::ofstream logfile ("cell_similarity_crash_02/output"); + initlog(__FILE__); deallog << std::setprecision (4); - - deallog.attach(logfile); - deallog.depth_console (0); deallog.threshold_double(1.e-7); test<1>(); diff --git a/tests/deal.II/coarsening_02.cc b/tests/deal.II/coarsening_02.cc index 27a6c062b6..1606db03a7 100644 --- a/tests/deal.II/coarsening_02.cc +++ b/tests/deal.II/coarsening_02.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008 by the deal.II authors +// Copyright (C) 2008, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -68,7 +68,7 @@ satisfies_level1_at_vertex_rule (const Triangulation &tr) template -void test(std::ostream& /*out*/) +void test() { Triangulation triangulation (Triangulation::limit_level_difference_at_vertices); @@ -120,16 +120,14 @@ void test(std::ostream& /*out*/) int main() { - std::ofstream logfile("coarsening_02/output"); - deallog.attach(logfile); - deallog.depth_console(0); + initlog(__FILE__); deallog.threshold_double(1.e-10); deallog.push("2d"); - test<2>(logfile); + test<2>(); deallog.pop(); deallog.push("3d"); - test<3>(logfile); + test<3>(); deallog.pop(); } diff --git a/tests/deal.II/coarsening_02_1d.cc b/tests/deal.II/coarsening_02_1d.cc index 496ce7273c..c49ae48a53 100644 --- a/tests/deal.II/coarsening_02_1d.cc +++ b/tests/deal.II/coarsening_02_1d.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008 by the deal.II authors +// Copyright (C) 2008, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -69,7 +69,7 @@ satisfies_level1_at_vertex_rule (const Triangulation &tr) template -void test(std::ostream& /*out*/) +void test() { Triangulation triangulation (Triangulation::limit_level_difference_at_vertices); @@ -140,12 +140,10 @@ void test(std::ostream& /*out*/) int main() { - std::ofstream logfile("coarsening_02_1d/output"); - deallog.attach(logfile); - deallog.depth_console(0); + initlog(__FILE__); deallog.threshold_double(1.e-10); deallog.push("1d"); - test<1>(logfile); + test<1>(); deallog.pop(); } diff --git a/tests/deal.II/coarsening_03.cc b/tests/deal.II/coarsening_03.cc index a8ba436de5..e0763d0c49 100644 --- a/tests/deal.II/coarsening_03.cc +++ b/tests/deal.II/coarsening_03.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2008 by the deal.II authors +// Copyright (C) 2008, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -65,7 +65,7 @@ satisfies_level1_at_vertex_rule (const Triangulation &tr) template -void test(std::ostream& /*out*/) +void test() { Triangulation triangulation (Triangulation::limit_level_difference_at_vertices); @@ -101,20 +101,18 @@ void test(std::ostream& /*out*/) int main() { - std::ofstream logfile("coarsening_03/output"); - deallog.attach(logfile); - deallog.depth_console(0); + initlog(__FILE__); deallog.threshold_double(1.e-10); deallog.push("1d"); - test<1>(logfile); + test<1>(); deallog.pop(); deallog.push("2d"); - test<2>(logfile); + test<2>(); deallog.pop(); deallog.push("3d"); - test<3>(logfile); + test<3>(); deallog.pop(); } diff --git a/tests/deal.II/constraint_graph.cc b/tests/deal.II/constraint_graph.cc index f7f7d6e6aa..b8f5eac226 100644 --- a/tests/deal.II/constraint_graph.cc +++ b/tests/deal.II/constraint_graph.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006, 2007, 2008 by the deal.II authors +// Copyright (C) 2005, 2006, 2007, 2008, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -64,11 +64,8 @@ void test () int main () { - std::ofstream logfile("constraint_graph/output"); - logfile << std::setprecision(2); + initlog(__FILE__); deallog << std::setprecision(2); - deallog.attach(logfile); - deallog.depth_console(0); deallog.threshold_double(1.e-10); test<3> ();