]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
add another test
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 27 May 2011 21:54:05 +0000 (21:54 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 27 May 2011 21:54:05 +0000 (21:54 +0000)
git-svn-id: https://svn.dealii.org/trunk@23747 0785d39b-7218-0410-832d-ea1e28bc413d

tests/lac/solver_relaxation_03.cc
tests/lac/solver_relaxation_03/cmp/generic

index 427f98f47543e21e4ffc29ac7da177db5679e911..fb94938d26c840e46f517e6379e424c99f185f03 100644 (file)
@@ -140,6 +140,9 @@ int main()
          prec_bjacobi.initialize(A, bperm, ibperm, prec_data);
          PreconditionBlockSOR<SparseMatrix<double>,double> prec_bsor;
          prec_bsor.initialize(A, bperm, ibperm, prec_data);
+         PreconditionBlockSOR<SparseMatrix<double>,double> prec_bsor2;
+         prec_bsor2.initialize(A, prec_data);
+         prec_bsor2.set_permutation(bperm, ibperm);
          PreconditionBlockSSOR<SparseMatrix<double>,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  ");
index 2bbe0b6e36035320afa9f581f850e96b7c6a5892..13811e14665bffcf3a6eb9df8b0b2100b328c075 100644 (file)
@@ -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

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.