]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Suppress log messages from SolverCG because the iteration numbers are too sensitive...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 1 Mar 2014 10:45:09 +0000 (10:45 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 1 Mar 2014 10:45:09 +0000 (10:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@32592 0785d39b-7218-0410-832d-ea1e28bc413d

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 1c015f0fd548632cafa47080814c188f7c32d95b..fbbe6a15f8976a618bdd8024e85f210b865d6aa7 100644 (file)
@@ -144,9 +144,14 @@ void do_test (const DoFHandler<dim> &dof)
 
   mf.apply_inverse (inverse, in);
 
-  SolverControl control(1000, 1e-10);
+  SolverControl control(1000, 1e-12);
+  // do not output iteration numbers to log file because these are too
+  // sensitive
+  std::ostringstream stream;
+  deallog.attach(stream);
   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();
index 7f51cbd39dd8d7e9b18567d18fa4350faf9cbec8..fec289a4b0ffc5a5be9a71eccbfc0761276408dc 100644 (file)
@@ -1,41 +1,33 @@
 
 DEAL:2d::Testing FE_DGQ<2>(1)
-DEAL:2d:cg::Starting value 6.32
-DEAL:2d:cg::Convergence step 48 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d:float::Testing FE_DGQ<2>(1)
-DEAL:2d:float:cg::Starting value 6.15
-DEAL:2d:float:cg::Convergence step 57 value 0
+
 DEAL:2d:float::Norm of difference: 0
 DEAL:2d:float::
 DEAL:2d::Testing FE_DGQ<2>(2)
-DEAL:2d:cg::Starting value 8.62
-DEAL:2d:cg::Convergence step 105 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d:float::Testing FE_DGQ<2>(2)
-DEAL:2d:float:cg::Starting value 9.05
-DEAL:2d:float:cg::Convergence step 133 value 0
+
 DEAL:2d:float::Norm of difference: 0
 DEAL:2d:float::
 DEAL:2d::Testing FE_DGQ<2>(4)
-DEAL:2d:cg::Starting value 14.6
-DEAL:2d:cg::Convergence step 311 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d:float::Testing FE_DGQ<2>(4)
-DEAL:2d:float:cg::Starting value 14.7
-DEAL:2d:float:cg::Convergence step 376 value 0
+
 DEAL:2d:float::Norm of difference: 0
 DEAL:2d:float::
 DEAL:3d::Testing FE_DGQ<3>(1)
-DEAL:3d:cg::Starting value 13.7
-DEAL:3d:cg::Convergence step 124 value 0
+
 DEAL:3d::Norm of difference: 0
 DEAL:3d::
 DEAL:3d::Testing FE_DGQ<3>(2)
-DEAL:3d:cg::Starting value 13.5
-DEAL:3d:cg::Convergence step 241 value 0
+
 DEAL:3d::Norm of difference: 0
 DEAL:3d::
index b9f022eb648851f42846ad4db0f497387f6f5b0d..4c973ed1d995036f752544f90ecfedefc8e8d906 100644 (file)
@@ -144,8 +144,11 @@ void do_test (const DoFHandler<dim> &dof)
   mf.apply_inverse (inverse, in);
 
   SolverControl control(1000, 1e-12);
+  std::ostringstream stream;
+  deallog.attach(stream);
   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();
index 67b9f697851c1ec66fae2fe240176cc09a4e64c2..7d5a4feb9e55ef3902073fe0c349294b5dcbaa46 100644 (file)
@@ -1,26 +1,21 @@
 
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(1)^2]
-DEAL:2d:cg::Starting value 7.90
-DEAL:2d:cg::Convergence step 7 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(2)^2]
-DEAL:2d:cg::Starting value 11.6
-DEAL:2d:cg::Convergence step 15 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(4)^2]
-DEAL:2d:cg::Starting value 19.1
-DEAL:2d:cg::Convergence step 46 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(1)^3]
-DEAL:3d:cg::Starting value 25.0
-DEAL:3d:cg::Convergence step 10 value 0
+
 DEAL:3d::Norm of difference: 0
 DEAL:3d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(2)^3]
-DEAL:3d:cg::Starting value 24.3
-DEAL:3d:cg::Convergence step 32 value 0
+
 DEAL:3d::Norm of difference: 0
 DEAL:3d::
index 512fb8306043b8f103ac80e2218e8093e48768b5..401affb1681a7a9882d14c26d785b87d9f395b0a 100644 (file)
@@ -158,8 +158,11 @@ void do_test (const DoFHandler<dim> &dof)
   mf.apply_inverse (inverse, in);
 
   SolverControl control(10000, 1e-12);
+  std::ostringstream stream;
+  deallog.attach(stream);
   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();
index 35799127eac2ea49041c10b5acd27128d44aca3c..d7d939486b34b6e67483fff075c5794723c4bb2d 100644 (file)
@@ -1,26 +1,21 @@
 
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(1)^3]
-DEAL:2d:cg::Starting value 10.6
-DEAL:2d:cg::Convergence step 108 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(2)^3]
-DEAL:2d:cg::Starting value 15.1
-DEAL:2d:cg::Convergence step 252 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:2d::Testing FESystem<2>[FE_DGQ<2>(4)^3]
-DEAL:2d:cg::Starting value 25.4
-DEAL:2d:cg::Convergence step 699 value 0
+
 DEAL:2d::Norm of difference: 0
 DEAL:2d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(1)^3]
-DEAL:3d:cg::Starting value 23.7
-DEAL:3d:cg::Convergence step 412 value 0
+
 DEAL:3d::Norm of difference: 0
 DEAL:3d::
 DEAL:3d::Testing FESystem<3>[FE_DGQ<3>(2)^3]
-DEAL:3d:cg::Starting value 23.7
-DEAL:3d:cg::Convergence step 1019 value 0
+
 DEAL:3d::Norm of difference: 0
 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.