]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
use BoomerAMG in step-40.
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Nov 2010 13:52:16 +0000 (13:52 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 13 Nov 2010 13:52:16 +0000 (13:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@22719 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-40/step-40.cc

index f0283eb77631162879c33ea445989d1f45c38a60..2e152621815e5da1985b67979dd9acd2afba0897 100644 (file)
@@ -380,7 +380,14 @@ void LaplaceProblem<dim>::solve ()
   SolverControl solver_control (dof_handler.n_dofs(), 1e-12);
 
   PETScWrappers::SolverCG solver(solver_control, mpi_communicator);
-  PETScWrappers::PreconditionBlockJacobi preconditioner(system_matrix);
+
+                                  // Ask for a symmetric preconditioner by
+                                  // setting the first parameter in
+                                  // AdditionalData to true.
+  PETScWrappers::PreconditionBoomerAMG preconditioner(
+    system_matrix,
+    PETScWrappers::PreconditionBoomerAMG::AdditionalData(true)
+  );
 
   solver.solve (system_matrix, completely_distributed_solution, system_rhs,
                preconditioner);

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.