HYPRE_Int HYPRE_CGNRSetPrecond

(HYPRE_Solver solver,
  HYPRE_PtrToSolverFcn precond,
  HYPRE_PtrToSolverFcn precondT,
  HYPRE_PtrToSolverFcn precond_setup,
  HYPRE_Solver precond_solver)

(Optional) Set the preconditioner to use.

Documentation

(Optional) Set the preconditioner to use. Note that the only preconditioner available in hypre for use with CGNR is currently BoomerAMG. It requires to use Jacobi as a smoother without CF smoothing, i.e. relax_type needs to be set to 0 or 7 and relax_order needs to be set to 0 by the user, since these are not default values. It can be used with a relaxation weight for Jacobi, which can significantly improve convergence.

Alphabetic index