From: guido Date: Fri, 25 Apr 2003 08:50:02 +0000 (+0000) Subject: add test for PreconditionPSOR X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=361f70eed6d08c94ea94b161e7a5a8428f719d12;p=dealii-svn.git add test for PreconditionPSOR git-svn-id: https://svn.dealii.org/trunk@7476 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/solver.cc b/tests/lac/solver.cc index a3749515d6..dc54ef4c80 100644 --- a/tests/lac/solver.cc +++ b/tests/lac/solver.cc @@ -82,6 +82,13 @@ int main() prec_sor.initialize(A, 1.2); PreconditionSSOR<> prec_ssor; prec_ssor.initialize(A, 1.2); + + std::vector permutation(dim); + for (unsigned int i=0;i prec_psor; + prec_psor.initialize(A, permutation, 1.2); Vector f(dim); Vector u(dim); @@ -137,6 +144,13 @@ int main() check_method(bicgstab,A,u,f,prec_sor); check_method(gmres,A,u,f,prec_sor); + deallog.push("psor"); + + check_method(rich,A,u,f,prec_psor); + check_method(cg,A,u,f,prec_psor); + check_method(bicgstab,A,u,f,prec_psor); + check_method(gmres,A,u,f,prec_psor); + deallog.pop(); } catch (std::exception& e)