]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tests: fe/fe_enriched_color_07 - use a better preconditioner 7317/head
authorMatthias Maier <tamiko@43-1.org>
Tue, 9 Oct 2018 21:01:26 +0000 (16:01 -0500)
committerMatthias Maier <tamiko@43-1.org>
Tue, 9 Oct 2018 21:05:33 +0000 (16:05 -0500)
PreconditionSOR does the job here...

tests/fe/fe_enriched_color_07.cc

index 8170d64d976c94d1becec808c00fe5665977ef4f..1159cea30a4297ff2b4dedb1e78ae2b3605ad4eb 100644 (file)
@@ -1573,16 +1573,7 @@ LaplaceProblem<dim>::solve()
   SolverControl solver_control(prm.max_iterations, prm.tolerance, false, false);
   PETScWrappers::SolverCG cg(solver_control, mpi_communicator);
 
-  // choose preconditioner
-#define amg
-#ifdef amg
-  PETScWrappers::PreconditionBoomerAMG::AdditionalData additional_data;
-  additional_data.symmetric_operator = true;
-  PETScWrappers::PreconditionBoomerAMG preconditioner(system_matrix,
-                                                      additional_data);
-#else
-  PETScWrappers::PreconditionJacobi preconditioner(system_matrix);
-#endif
+  PETScWrappers::PreconditionSOR preconditioner(system_matrix);
 
   cg.solve(system_matrix, 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.