]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove old logfile from tests. 7034/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 7 Aug 2018 11:23:59 +0000 (13:23 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 7 Aug 2018 11:24:25 +0000 (13:24 +0200)
tests/matrix_free/inverse_mass_01.cc
tests/matrix_free/inverse_mass_01.output
tests/matrix_free/inverse_mass_02.cc
tests/matrix_free/inverse_mass_02.output
tests/matrix_free/inverse_mass_03.cc
tests/matrix_free/inverse_mass_03.output

index e1e87c6cccf34b339fed064f4271974256852d42..d7de6315b9d702c2ce2b7f18a0d8be684f57f208 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2014 - 2017 by the deal.II authors
+// Copyright (C) 2014 - 2018 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -40,9 +40,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
-
 
 template <int dim,
           int fe_degree,
@@ -161,14 +158,9 @@ do_test(const DoFHandler<dim> &dof)
 
   mf.apply_inverse(inverse, in);
 
-  SolverControl control(1000, 1e-12);
-  // do not output iteration numbers to log file because these are too
-  // sensitive
-  std::ostringstream stream;
-  deallog.attach(stream);
+  SolverControl            control(1000, 1e-12);
   SolverCG<Vector<number>> solver(control);
   solver.solve(mf, reference, in, PreconditionIdentity());
-  deallog.attach(logfile);
 
   inverse -= reference;
   const double diff_norm = inverse.linfty_norm() / reference.linfty_norm();
@@ -223,9 +215,12 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << std::setprecision(3);
+  // do not output CG iteration numbers to log file because these are too
+  // sensitive
+  deallog.depth_file(2);
 
   {
     deallog.push("2d");
index fec289a4b0ffc5a5be9a71eccbfc0761276408dc..19887e1814d4ef1fa5ec7f90f900095efac5111f 100644 (file)
@@ -1,33 +1,16 @@
 
 DEAL:2d::Testing FE_DGQ<2>(1)
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 2.21e-13
 DEAL:2d::
-DEAL:2d:float::Testing FE_DGQ<2>(1)
-
-DEAL:2d:float::Norm of difference: 0
-DEAL:2d:float::
 DEAL:2d::Testing FE_DGQ<2>(2)
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 1.29e-13
 DEAL:2d::
-DEAL:2d:float::Testing FE_DGQ<2>(2)
-
-DEAL:2d:float::Norm of difference: 0
-DEAL:2d:float::
 DEAL:2d::Testing FE_DGQ<2>(4)
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 4.60e-14
 DEAL:2d::
-DEAL:2d:float::Testing FE_DGQ<2>(4)
-
-DEAL:2d:float::Norm of difference: 0
-DEAL:2d:float::
 DEAL:3d::Testing FE_DGQ<3>(1)
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 3.27e-14
 DEAL:3d::
 DEAL:3d::Testing FE_DGQ<3>(2)
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 1.03e-15
 DEAL:3d::
index d105f4f30c419e7d8276c8334a7240a60b3f0da6..fb3bcad4739e4b6792109b1a4019dfe09ee05737 100644 (file)
@@ -40,9 +40,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
-
 
 template <int dim,
           int fe_degree,
@@ -160,12 +157,9 @@ do_test(const DoFHandler<dim> &dof)
 
   mf.apply_inverse(inverse, in);
 
-  SolverControl      control(1000, 1e-12);
-  std::ostringstream stream;
-  deallog.attach(stream);
+  SolverControl            control(1000, 1e-12);
   SolverCG<Vector<number>> solver(control);
   solver.solve(mf, reference, in, PreconditionIdentity());
-  deallog.attach(logfile);
 
   inverse -= reference;
   const double diff_norm = inverse.linfty_norm() / reference.linfty_norm();
@@ -207,9 +201,10 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << std::setprecision(3);
+  deallog.depth_file(2);
 
   {
     deallog.push("2d");
index 7d5a4feb9e55ef3902073fe0c349294b5dcbaa46..07daa53eb6cbe99b2e38bc9a3e2c3aff0b75a977 100644 (file)
@@ -1,21 +1,16 @@
 
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(1)^2]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 5.67e-16
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(2)^2]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 1.01e-14
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(4)^2]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 9.43e-16
 DEAL:2d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(1)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 1.23e-15
 DEAL:3d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(2)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 2.30e-15
 DEAL:3d::
index f2d3571119427f7aa8b3d754ca42ae3247ddad4e..82d5942d67ac0a3f8ea97c53b6784e4793be8791 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2014 - 2017 by the deal.II authors
+// Copyright (C) 2014 - 2018 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -41,9 +41,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
-
 
 template <int dim,
           int fe_degree,
@@ -176,12 +173,9 @@ do_test(const DoFHandler<dim> &dof)
 
   mf.apply_inverse(inverse, in);
 
-  SolverControl      control(10000, 1e-12);
-  std::ostringstream stream;
-  deallog.attach(stream);
+  SolverControl            control(10000, 1e-12);
   SolverCG<Vector<number>> solver(control);
   solver.solve(mf, reference, in, PreconditionIdentity());
-  deallog.attach(logfile);
 
   inverse -= reference;
   const double diff_norm = inverse.linfty_norm() / reference.linfty_norm();
@@ -230,10 +224,14 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << std::setprecision(3);
 
+  // do not output CG iteration numbers to log file because these are too
+  // sensitive
+  deallog.depth_file(2);
+
   {
     deallog.push("2d");
     test<2, 1>();
index d7d939486b34b6e67483fff075c5794723c4bb2d..c0c239bd09d586d7a5d2a7a3269ce2853f3170de 100644 (file)
@@ -1,21 +1,16 @@
 
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(1)^3]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 1.57e-13
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(2)^3]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 4.92e-14
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(4)^3]
-
-DEAL:2d::Norm of difference: 0
+DEAL:2d::Norm of difference: 6.71e-14
 DEAL:2d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(1)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 7.04e-14
 DEAL:3d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(2)^3]
-
-DEAL:3d::Norm of difference: 0
+DEAL:3d::Norm of difference: 4.85e-14
 DEAL:3d::

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.