f = 1.;
A.compress(VectorOperation::insert);
- GrowingVectorMemory<PETScWrappers::MPI::Vector> mem;
- SolverGMRES<PETScWrappers::MPI::Vector> solver(control, mem);
- PreconditionIdentity preconditioner;
+ GrowingVectorMemory<PETScWrappers::MPI::Vector> mem;
+ SolverGMRES<PETScWrappers::MPI::Vector>::AdditionalData data(28);
+ SolverGMRES<PETScWrappers::MPI::Vector> solver(control, mem, data);
+ PreconditionIdentity preconditioner;
deallog << "Solver type: " << typeid(solver).name() << std::endl;
check_solver_within_range(solver.solve(A, u, f, preconditioner),
control.last_step(),
f.compress(VectorOperation::insert);
u.compress(VectorOperation::insert);
- GrowingVectorMemory<TrilinosWrappers::MPI::Vector> mem;
- SolverGMRES<TrilinosWrappers::MPI::Vector> solver(control, mem);
- PreconditionIdentity preconditioner;
+ GrowingVectorMemory<TrilinosWrappers::MPI::Vector> mem;
+ SolverGMRES<TrilinosWrappers::MPI::Vector>::AdditionalData data(28);
+ SolverGMRES<TrilinosWrappers::MPI::Vector> solver(control, mem, data);
+ PreconditionIdentity preconditioner;
deallog << "Solver type: " << typeid(solver).name() << std::endl;
check_solver_within_range(solver.solve(A, u, f, preconditioner),
control.last_step(),
- 71,
+ 74,
76);
}
}
DEAL::Size 32 Unknowns 961
DEAL::Solver type: N6dealii11SolverGMRESINS_16TrilinosWrappers3MPI6VectorEEE
-DEAL::Solver stopped within 71 - 76 iterations
+DEAL::Solver stopped within 74 - 76 iterations