From: wolf Date: Sun, 31 Oct 1999 14:26:01 +0000 (+0000) Subject: Update testcase. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80aa7e6447fb8d4e40455784f6954399455816b5;p=dealii-svn.git Update testcase. git-svn-id: https://svn.dealii.org/trunk@1811 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/solver.cc b/tests/lac/solver.cc index 6347d8e10a..8129986a41 100644 --- a/tests/lac/solver.cc +++ b/tests/lac/solver.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include template @@ -39,6 +40,7 @@ main() SolverGMRES , Vector > gmres(control, mem,20); SolverBicgstab , Vector > bicgstab(control, mem); SolverRichardson , Vector > rich(control, mem); + SolverQMRS , Vector > qmrs(control, mem); for (unsigned int size=4; size <= 40; size *= 3) { @@ -77,28 +79,33 @@ main() deallog << "SOR-diff:" << res*res << endl; deallog.push("no"); - - check_method(cg,A,u,f,prec_no); - check_method(bicgstab,A,u,f,prec_no); - check_method(gmres,A,u,f,prec_no); - + { + check_method(cg,A,u,f,prec_no); + check_method(bicgstab,A,u,f,prec_no); + check_method(gmres,A,u,f,prec_no); + check_method(qmrs,A,u,f,prec_no); + }; deallog.pop(); + deallog.push("ssor"); - - check_method(rich,A,u,f,prec_ssor); - check_method(cg,A,u,f,prec_ssor); -// testproblem.gnuplot_print(cout, u); - check_method(bicgstab,A,u,f,prec_ssor); - check_method(gmres,A,u,f,prec_ssor); - + { + check_method(rich,A,u,f,prec_ssor); + check_method(cg,A,u,f,prec_ssor); + check_method(bicgstab,A,u,f,prec_ssor); + check_method(gmres,A,u,f,prec_ssor); + check_method(qmrs,A,u,f,prec_ssor); + }; deallog.pop(); - deallog.push("sor"); - - check_method(rich,A,u,f,prec_sor); - check_method(cg,A,u,f,prec_sor); - check_method(bicgstab,A,u,f,prec_sor); - check_method(gmres,A,u,f,prec_sor); + deallog.push("sor"); + { + check_method(rich,A,u,f,prec_sor); + check_method(cg,A,u,f,prec_sor); + check_method(bicgstab,A,u,f,prec_sor); + check_method(gmres,A,u,f,prec_sor); + check_method(qmrs,A,u,f,prec_sor); + }; deallog.pop(); - } -} + }; +}; + diff --git a/tests/lac/solver.checked b/tests/lac/solver.checked index 0971aa1ac6..dc3c4adf15 100644 --- a/tests/lac/solver.checked +++ b/tests/lac/solver.checked @@ -1,49 +1,118 @@ - +JobId Sat Oct 30 23:15:21 1999 DEAL::Size 4 DEAL::SOR-diff:0 -DEAL:no:cg::Convergence step 2 +DEAL:no:cg::Starting value 3 +DEAL:no:cg::Starting value 1.5 +DEAL:no:cg::Convergence step 2 value 7.41958e-17 DEAL:no:Bicgstab::Go! -DEAL:no:Bicgstab::Convergence step 3 -DEAL:no:GMRES::Convergence step 2 -DEAL:ssor:Richardson::Convergence step 15 -DEAL:ssor:cg::Convergence step 4 +DEAL:no:Bicgstab::Starting value 3 +DEAL:no:Bicgstab::Convergence step 3 value 8.52778e-16 +DEAL:no:GMRES::Starting value 3 +DEAL:no:GMRES::Starting value 1.34164 +DEAL:no:GMRES::Convergence step 2 value 2.26623e-17 +DEAL:no:QMRS::Starting value 3 +DEAL:no:QMRS::Convergence step 3 value 1.18334e-16 +DEAL:ssor:Richardson::Starting value 3 +DEAL:ssor:Richardson::Convergence step 15 value 5.46735e-06 +DEAL:ssor:cg::Starting value 3 +DEAL:ssor:cg::Starting value 0.712597 +DEAL:ssor:cg::Convergence step 4 value 1.12399e-08 DEAL:ssor:Bicgstab::Go! -DEAL:ssor:Bicgstab::Convergence step 3 -DEAL:ssor:GMRES::Convergence step 3 -DEAL:sor:Richardson::Convergence step 10 -DEAL:sor:cg::Failure step 50 +DEAL:ssor:Bicgstab::Starting value 3 +DEAL:ssor:Bicgstab::Convergence step 3 value 6.87989e-07 +DEAL:ssor:GMRES::Starting value 1.59968 +DEAL:ssor:GMRES::Starting value 0.164948 +DEAL:ssor:GMRES::Convergence step 3 value 7.4443e-06 +DEAL:ssor:QMRS::Starting value 3 +DEAL:ssor:QMRS::Convergence step 11 value 7.53301e-06 +DEAL:sor:Richardson::Starting value 3 +DEAL:sor:Richardson::Convergence step 10 value 1.70637e-06 +DEAL:sor:cg::Starting value 3 +DEAL:sor:cg::Starting value 1.60952 +DEAL:sor:cg::Failure step 50 value 0.324887 DEAL:sor:Bicgstab::Go! -DEAL:sor:Bicgstab::Convergence step 5 -DEAL:sor:GMRES::Convergence step 4 +DEAL:sor:Bicgstab::Starting value 3 +DEAL:sor:Bicgstab::Convergence step 5 value 1.27555e-15 +DEAL:sor:GMRES::Starting value 1.46162 +DEAL:sor:GMRES::Starting value 0.551603 +DEAL:sor:GMRES::Convergence step 4 value 8.50618e-19 +DEAL:sor:QMRS::Starting value 3 +DEAL:sor:QMRS::Convergence step 12 value 3.57758e-06 DEAL::Size 12 DEAL::SOR-diff:0 -DEAL:no:cg::Convergence step 16 +DEAL:no:cg::Starting value 11 +DEAL:no:cg::Starting value 16.5 +DEAL:no:cg::Convergence step 16 value 9.449e-06 DEAL:no:Bicgstab::Go! -DEAL:no:Bicgstab::Convergence step 13 -DEAL:no:GMRES::Convergence step 16 -DEAL:ssor:Richardson::Failure step 50 -DEAL:ssor:cg::Convergence step 10 +DEAL:no:Bicgstab::Starting value 11 +DEAL:no:Bicgstab::Convergence step 13 value 2.51439e-06 +DEAL:no:GMRES::Starting value 11 +DEAL:no:GMRES::Starting value 9.15255 +DEAL:no:GMRES::Convergence step 16 value 9.34333e-06 +DEAL:no:QMRS::Starting value 11 +DEAL:no:QMRS::Convergence step 18 value 6.58181e-06 +DEAL:ssor:Richardson::Starting value 11 +DEAL:ssor:Richardson::Failure step 50 value 0.00366793 +DEAL:ssor:cg::Starting value 11 +DEAL:ssor:cg::Starting value 12.1271 +DEAL:ssor:cg::Convergence step 10 value 2.95033e-06 DEAL:ssor:Bicgstab::Go! -DEAL:ssor:Bicgstab::Convergence step 6 -DEAL:ssor:GMRES::Convergence step 9 -DEAL:sor:Richardson::Failure step 50 -DEAL:sor:cg::Failure step 50 +DEAL:ssor:Bicgstab::Starting value 11 +DEAL:ssor:Bicgstab::Convergence step 6 value 5.53349e-06 +DEAL:ssor:GMRES::Starting value 11.0547 +DEAL:ssor:GMRES::Starting value 5.98114 +DEAL:ssor:GMRES::Convergence step 9 value 4.72222e-06 +DEAL:ssor:QMRS::Starting value 11 +DEAL:ssor:QMRS::Convergence step 44 value 9.98265e-06 +DEAL:sor:Richardson::Starting value 11 +DEAL:sor:Richardson::Failure step 50 value 0.0549709 +DEAL:sor:cg::Starting value 11 +DEAL:sor:cg::Starting value 16.0372 +DEAL:sor:cg::Failure step 50 value 5.58864 DEAL:sor:Bicgstab::Go! -DEAL:sor:Bicgstab::Convergence step 19 -DEAL:sor:GMRES::Convergence step 24 +DEAL:sor:Bicgstab::Starting value 11 +DEAL:sor:Bicgstab::Convergence step 19 value 8.78302e-07 +DEAL:sor:GMRES::Starting value 7.32173 +DEAL:sor:GMRES::Starting value 5.57038 +DEAL:sor:GMRES::Convergence step 24 value 5.02756e-06 +DEAL:sor:QMRS::Starting value 11 +DEAL:sor:QMRS::Convergence step 43 value 5.01457e-06 DEAL::Size 36 DEAL::SOR-diff:2.21867e-30 -DEAL:no:cg::Failure step 50 +DEAL:no:cg::Starting value 35 +DEAL:no:cg::Starting value 100.53 +DEAL:no:cg::Failure step 50 value 0.000294568 DEAL:no:Bicgstab::Go! -DEAL:no:Bicgstab::Convergence step 44 -DEAL:no:GMRES::Failure step 50 -DEAL:ssor:Richardson::Failure step 50 -DEAL:ssor:cg::Convergence step 26 +DEAL:no:Bicgstab::Starting value 35 +DEAL:no:Bicgstab::Convergence step 45 value 8.09686e-06 +DEAL:no:GMRES::Starting value 35 +DEAL:no:GMRES::Starting value 33.054 +DEAL:no:GMRES::Failure step 50 value 1.54196 +DEAL:no:QMRS::Starting value 35 +DEAL:no:QMRS::Failure step 50 value 0.00425757 +DEAL:ssor:Richardson::Starting value 35 +DEAL:ssor:Richardson::Failure step 50 value 11.3628 +DEAL:ssor:cg::Starting value 35 +DEAL:ssor:cg::Starting value 91.4249 +DEAL:ssor:cg::Convergence step 26 value 5.78212e-06 DEAL:ssor:Bicgstab::Go! -DEAL:ssor:Bicgstab::Convergence step 18 -DEAL:ssor:GMRES::Convergence step 25 -DEAL:sor:Richardson::Failure step 50 -DEAL:sor:cg::Failure step 50 +DEAL:ssor:Bicgstab::Starting value 35 +DEAL:ssor:Bicgstab::Convergence step 18 value 6.7048e-06 +DEAL:ssor:GMRES::Starting value 41.0011 +DEAL:ssor:GMRES::Starting value 35.3154 +DEAL:ssor:GMRES::Convergence step 25 value 7.42378e-06 +DEAL:ssor:QMRS::Starting value 35 +DEAL:ssor:QMRS::Failure step 50 value 5.15537 +DEAL:sor:Richardson::Starting value 35 +DEAL:sor:Richardson::Failure step 50 value 16.5662 +DEAL:sor:cg::Starting value 35 +DEAL:sor:cg::Starting value 104.427 +DEAL:sor:cg::Failure step 50 value 133.931 DEAL:sor:Bicgstab::Go! -DEAL:sor:Bicgstab::Failure step 50 -DEAL:sor:GMRES::Failure step 50 +DEAL:sor:Bicgstab::Starting value 35 +DEAL:sor:Bicgstab::Failure step 50 value 0.00034098 +DEAL:sor:GMRES::Starting value 25.3018 +DEAL:sor:GMRES::Starting value 23.4114 +DEAL:sor:GMRES::Failure step 50 value 0.223274 +DEAL:sor:QMRS::Starting value 35 +DEAL:sor:QMRS::Failure step 50 value 3.27927