From 2be67ebb9cd7924c582a2a2409a9fd681d31de0d Mon Sep 17 00:00:00 2001 From: heister Date: Sat, 13 Nov 2010 13:52:16 +0000 Subject: [PATCH] use BoomerAMG in step-40. git-svn-id: https://svn.dealii.org/trunk@22719 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-40/step-40.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); -- 2.39.5