]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Constructors of wrapper SolverCG for PETSc and Trilinos have different interaces 1571/head
authorLei Qiao <qiaol618@gmail.com>
Wed, 9 Sep 2015 21:49:33 +0000 (16:49 -0500)
committerLei Qiao <qiaol618@gmail.com>
Wed, 9 Sep 2015 21:56:12 +0000 (16:56 -0500)
examples/step-40/step-40.cc

index c0e7ed930b06330e2e543cf444f8b74b9cb4e2f5..d92c47423a6f2063f2a28b319d0ba2dfcfa4025e 100644 (file)
@@ -467,7 +467,12 @@ namespace Step40
 
     SolverControl solver_control (dof_handler.n_dofs(), 1e-12);
 
+#ifdef USE_PETSC_LA
     LA::SolverCG solver(solver_control, mpi_communicator);
+#else
+    LA::SolverCG solver(solver_control);
+#endif
+
     LA::MPI::PreconditionAMG preconditioner;
 
     LA::MPI::PreconditionAMG::AdditionalData data;

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.