From: heister Date: Sat, 13 Nov 2010 13:52:16 +0000 (+0000) Subject: use BoomerAMG in step-40. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2be67ebb9cd7924c582a2a2409a9fd681d31de0d;p=dealii-svn.git use BoomerAMG in step-40. git-svn-id: https://svn.dealii.org/trunk@22719 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-40/step-40.cc b/deal.II/examples/step-40/step-40.cc index f0283eb776..2e15262181 100644 --- a/deal.II/examples/step-40/step-40.cc +++ b/deal.II/examples/step-40/step-40.cc @@ -380,7 +380,14 @@ void LaplaceProblem::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);