]> https://gitweb.dealii.org/ - dealii.git/commitdiff
p:d:step-27: Adjusted AdditionalData object for Trilinos. 8731/head
authorMarc Fehling <marc.fehling@gmx.net>
Tue, 10 Sep 2019 19:46:05 +0000 (21:46 +0200)
committerMarc Fehling <marc.fehling@gmx.net>
Tue, 10 Sep 2019 19:46:05 +0000 (21:46 +0200)
tests/mpi/trilinos_step-27.cc

index 44d553f904825df8204f4a06001b4347ffa8e05d..ef0886d92b763fffaefcf3d73a696d8b48f9c0b9 100644 (file)
@@ -342,8 +342,11 @@ namespace Step27
     // Loss of precision with a factor of 1e-12 with Trilinos
     LA::SolverCG cg(solver_control);
 
-    LA::MPI::PreconditionAMG preconditioner;
-    preconditioner.initialize(system_matrix);
+    LA::MPI::PreconditionAMG                 preconditioner;
+    LA::MPI::PreconditionAMG::AdditionalData data;
+    data.elliptic              = true;
+    data.higher_order_elements = true;
+    preconditioner.initialize(system_matrix, data);
 
     check_solver_within_range(cg.solve(system_matrix,
                                        completely_distributed_solution,

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.