]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
why is this in there again?
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 29 Oct 2011 15:28:46 +0000 (15:28 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 29 Oct 2011 15:28:46 +0000 (15:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@24689 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/block_info.cc
tests/deal.II/boundaries.cc
tests/deal.II/cell_similarity_crash_01.cc
tests/deal.II/cell_similarity_crash_02.cc
tests/deal.II/coarsening_02.cc
tests/deal.II/coarsening_02_1d.cc
tests/deal.II/coarsening_03.cc
tests/deal.II/constraint_graph.cc

index 0c5319b7e5259236862dc13ca970b23754a0226c..0c2892927a01eb70f3b55f25d14525ede8812d12 100644 (file)
@@ -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<dim>& 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);
index 259cf575e8c1d6f49fbabbe40b1fb347707151ca..782f9d8a0cef675d0411a41b8ffb4c5f6c36f7f9 100644 (file)
@@ -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> ();
index 8b7af316725fdbf2bfd7dd2a3a4d95639ad5ec7a..46aa7d278090cc0a2299ee80ce2d1d42c4980a1c 100644 (file)
@@ -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>();  
index d56924a52f66613f36c5787c4d579796de8cca85..489920e45c53904642cb5080f15546c049591898 100644 (file)
@@ -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>();
index 27a6c062b6e161b40a40f2ffdf12b8bc1f6de38a..1606db03a79ad23ea350838bd496d3274a5953d6 100644 (file)
@@ -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<dim> &tr)
 
 
 template<int dim>
-void test(std::ostream& /*out*/)
+void test()
 {
   Triangulation<dim> triangulation (Triangulation<dim>::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();
 }
index 496ce7273ce4dc9531afdee98884d1b93a3ee0c3..c49ae48a53e3f9683fd11808486f02759a47c23f 100644 (file)
@@ -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<dim> &tr)
 
 
 template<int dim>
-void test(std::ostream& /*out*/)
+void test()
 {
   Triangulation<dim> triangulation (Triangulation<dim>::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();
 }
index a8ba436de5004ea48d54113a96328d8be8a68679..e0763d0c4912a999c0311ef88511e6d97bb6fb9a 100644 (file)
@@ -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<dim> &tr)
 
 
 template<int dim>
-void test(std::ostream& /*out*/)
+void test()
 {
   Triangulation<dim> triangulation (Triangulation<dim>::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();
 }
index f7f7d6e6aabf5741ed88a763a091ecda0e5b42fa..b8f5eac2262f8f2e0c4fd3e132e714d311686050 100644 (file)
@@ -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> ();

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.