From: Lei Qiao Date: Wed, 9 Sep 2015 21:49:33 +0000 (-0500) Subject: Constructors of wrapper SolverCG for PETSc and Trilinos have different interaces X-Git-Tag: v8.4.0-rc2~449^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d64c97e68a18969312a26ba59e34b37505f8295;p=dealii.git Constructors of wrapper SolverCG for PETSc and Trilinos have different interaces --- diff --git a/examples/step-40/step-40.cc b/examples/step-40/step-40.cc index c0e7ed930b..d92c47423a 100644 --- a/examples/step-40/step-40.cc +++ b/examples/step-40/step-40.cc @@ -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;