From 0d64c97e68a18969312a26ba59e34b37505f8295 Mon Sep 17 00:00:00 2001 From: Lei Qiao Date: Wed, 9 Sep 2015 16:49:33 -0500 Subject: [PATCH] Constructors of wrapper SolverCG for PETSc and Trilinos have different interaces --- examples/step-40/step-40.cc | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5