From: kanschat Date: Fri, 27 May 2011 21:54:05 +0000 (+0000) Subject: add another test X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8bafaadfe2415f322054b5b0ad7ebd2614cb83cb;p=dealii-svn.git add another test git-svn-id: https://svn.dealii.org/trunk@23747 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/lac/solver_relaxation_03.cc b/tests/lac/solver_relaxation_03.cc index 427f98f475..fb94938d26 100644 --- a/tests/lac/solver_relaxation_03.cc +++ b/tests/lac/solver_relaxation_03.cc @@ -140,6 +140,9 @@ int main() prec_bjacobi.initialize(A, bperm, ibperm, prec_data); PreconditionBlockSOR,double> prec_bsor; prec_bsor.initialize(A, bperm, ibperm, prec_data); + PreconditionBlockSOR,double> prec_bsor2; + prec_bsor2.initialize(A, prec_data); + prec_bsor2.set_permutation(bperm, ibperm); PreconditionBlockSSOR,double> prec_bssor; prec_bssor.initialize(A, bperm, ibperm, prec_data); @@ -176,6 +179,8 @@ int main() deallog << "diff " << std::fabs(r1-r2)/r1 << std::endl; r2 = check_solve(relax,A,u,f,prec_bsor); deallog << "diff " << std::fabs(r1-r2)/r1 << std::endl; + r2 = check_solve(relax,A,u,f,prec_bsor2); + deallog << "diff " << std::fabs(r1-r2)/r1 << std::endl; deallog.pop(); deallog.push("SSOR "); diff --git a/tests/lac/solver_relaxation_03/cmp/generic b/tests/lac/solver_relaxation_03/cmp/generic index 2bbe0b6e36..13811e1466 100644 --- a/tests/lac/solver_relaxation_03/cmp/generic +++ b/tests/lac/solver_relaxation_03/cmp/generic @@ -18,6 +18,9 @@ DEAL:SOR ::diff 0 DEAL:SOR :Relaxation::Starting value 32.00 DEAL:SOR :Relaxation::Failure step 10 value 24.60 DEAL:SOR ::diff 0 +DEAL:SOR :Relaxation::Starting value 32.00 +DEAL:SOR :Relaxation::Failure step 10 value 24.60 +DEAL:SOR ::diff 0 DEAL:SSOR :Richardson::Starting value 32.00 DEAL:SSOR :Richardson::Failure step 10 value 21.41 DEAL:SSOR :Relaxation::Starting value 32.00 @@ -44,6 +47,9 @@ DEAL:SOR ::diff 0 DEAL:SOR :Relaxation::Starting value 32.00 DEAL:SOR :Relaxation::Failure step 10 value 23.66 DEAL:SOR ::diff 0 +DEAL:SOR :Relaxation::Starting value 32.00 +DEAL:SOR :Relaxation::Failure step 10 value 23.66 +DEAL:SOR ::diff 0 DEAL:SSOR :Richardson::Starting value 32.00 DEAL:SSOR :Richardson::Failure step 10 value 19.22 DEAL:SSOR :Relaxation::Starting value 32.00 @@ -70,6 +76,9 @@ DEAL:SOR ::diff 0 DEAL:SOR :Relaxation::Starting value 32.00 DEAL:SOR :Relaxation::Failure step 10 value 22.95 DEAL:SOR ::diff 0 +DEAL:SOR :Relaxation::Starting value 32.00 +DEAL:SOR :Relaxation::Failure step 10 value 22.95 +DEAL:SOR ::diff 0 DEAL:SSOR :Richardson::Starting value 32.00 DEAL:SSOR :Richardson::Failure step 10 value 17.41 DEAL:SSOR :Relaxation::Starting value 32.00