]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid factors such as 6.25 that need to rounded to 2 decimals.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 22 May 2014 17:25:47 +0000 (17:25 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 22 May 2014 17:25:47 +0000 (17:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@32964 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/gmres_eigenvalues.cc
tests/lac/gmres_eigenvalues.output

index b5c2abf4759bdb16824f10353a37afc1f6cf4687..f638e6ae7d286e94f7bbf357913114640e65be6d 100644 (file)
@@ -42,7 +42,7 @@ void test (unsigned int variant)
       matrix(i,i) = (i+1);
   else if (variant == 1)
     for (unsigned int i=0; i<n; ++i)
-      matrix(i,i) = (i+1) * (i+1) * (i+1) * (i+1);
+      matrix(i,i) = (i+1) * (i+1) * (i+1) * (i+1) * 1.001;
   else if (variant == 2)
     for (unsigned int i=0; i<n; ++i)
       matrix(i,i) = (i%2?1.:-1.)*(i+1);
index d6847378f0dd45d72951751b026c5c04548efbb4..4bcadb4367346c27e03036298cbb53b456a19b4f 100644 (file)
@@ -7,7 +7,7 @@ DEAL:double:0:cg::Convergence step 56 value 0
 DEAL:double:0:cg:: 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0 9.0 10. 11. 12. 13. 14. 15. 16. 17. 18. 20. 21. 22. 24. 25. 27. 28. 30. 31. 33. 34. 35. 37. 38. 40. 41. 43. 44. 45. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64.
 DEAL:double:1:GMRES::Starting value 4.0
 DEAL:double:1:GMRES::Convergence step 16 value 0
-DEAL:double:1:GMRES::Eigenvalue estimate:  (1.0,0.0) (16.,0.0) (81.,0.0) (2.6e+02,0.0) (6.2e+02,0.0) (1.3e+03,0.0) (2.4e+03,0.0) (4.1e+03,0.0) (6.6e+03,0.0) (1.0e+04,0.0) (1.5e+04,0.0) (2.1e+04,0.0) (2.9e+04,0.0) (3.8e+04,0.0) (5.1e+04,0.0) (6.6e+04,0.0)
+DEAL:double:1:GMRES::Eigenvalue estimate:  (1.0,0.0) (16.,0.0) (81.,0.0) (2.6e+02,0.0) (6.3e+02,0.0) (1.3e+03,0.0) (2.4e+03,0.0) (4.1e+03,0.0) (6.6e+03,0.0) (1.0e+04,0.0) (1.5e+04,0.0) (2.1e+04,0.0) (2.9e+04,0.0) (3.8e+04,0.0) (5.1e+04,0.0) (6.6e+04,0.0)
 DEAL:double:2:GMRES::Starting value 8.0
 DEAL:double:2:GMRES::Convergence step 64 value 0
 DEAL:double:2:GMRES::Eigenvalue estimate:  (-63.,0.0) (-61.,0.0) (-59.,0.0) (-57.,0.0) (-55.,0.0) (-53.,0.0) (-51.,0.0) (-49.,0.0) (-47.,0.0) (-45.,0.0) (-43.,0.0) (-41.,0.0) (-39.,0.0) (-37.,0.0) (-35.,0.0) (-33.,0.0) (-31.,0.0) (-29.,0.0) (-27.,0.0) (-25.,0.0) (-23.,0.0) (-21.,0.0) (-19.,0.0) (-17.,0.0) (-15.,0.0) (-13.,0.0) (-11.,0.0) (-9.0,0.0) (-7.0,0.0) (-5.0,0.0) (-3.0,0.0) (-1.0,0.0) (2.0,0.0) (4.0,0.0) (6.0,0.0) (8.0,0.0) (10.,0.0) (12.,0.0) (14.,0.0) (16.,0.0) (18.,0.0) (20.,0.0) (22.,0.0) (24.,0.0) (26.,0.0) (28.,0.0) (30.,0.0) (32.,0.0) (34.,0.0) (36.,0.0) (38.,0.0) (40.,0.0) (42.,0.0) (44.,0.0) (46.,0.0) (48.,0.0) (50.,0.0) (52.,0.0) (54.,0.0) (56.,0.0) (58.,0.0) (60.,0.0) (62.,0.0) (64.,0.0)

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.