NEPSetRefine — SLEPc 3.24.2 documentation

Skip to main content
`Ctrl`+`K`

# NEPSetRefine

Specifies the refinement type (and options) to be used after the solve.

## Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPSetRefine(NEP nep,NEPRefine refine,PetscInt npart,PetscReal tol,PetscInt its,NEPRefineScheme scheme)

Logically Collective

## Input Parameters

- nep - the nonlinear eigensolver context

- refine - refinement type, see `NEPRefine` for possible values

- npart - number of partitions of the communicator

- tol - the convergence tolerance

- its - maximum number of refinement iterations

- scheme - which scheme to be used for solving the involved linear systems, see `NEPRefineScheme` for possible values

## Options Database Keys

- -nep_refine <refine> - set the refinement type, one of `none`,`simple`,`multiple`

- -nep_refine_partitions <npart> - set the number of partitions

- -nep_refine_tol <tol> - set the tolerance

- -nep_refine_its <its> - set the number of iterations

- -nep_refine_scheme <scheme> - set the scheme for the linear solves, `schur`,`mbe`, or `explicit`

## Notes

This function configures the parameters of Newton iterative refinement, see section Iterative Refinement for a discussion of the different strategies in the context of polynomial eigenproblems.

By default, iterative refinement is disabled, since it may be very costly. There are two possible refinement strategies, simple and multiple. The simple approach performs iterative refinement on each of the converged eigenpairs individually, whereas the multiple strategy works with the invariant pair as a whole, refining all eigenpairs simultaneously. The latter may be required for the case of multiple eigenvalues.

In some cases, especially when using direct solvers within the iterative refinement method, it may be helpful for improved scalability to split the communicator in several partitions. The `npart` parameter indicates how many partitions to use (defaults to 1).

The `tol` and `its` parameters specify the stopping criterion. In the simple method, refinement continues until the residual of each eigenpair is below the tolerance (`tol` defaults to the `NEP` tolerance, but may be set to a different value). In contrast, the multiple method simply performs its refinement iterations (just one by default).

The `scheme` argument is used to change the way in which linear systems are solved. Possible choices are explicit, mixed block elimination (MBE), and Schur complement.

Use `PETSC_CURRENT` to retain the current value of `npart`, `tol` or `its`. Use `PETSC_DETERMINE` to assign a default value.

## See Also

NEP: Nonlinear Eigenvalue Problems, Iterative Refinement, `NEPGetRefine()`

## Level

intermediate

## Location

src/nep/interface/nepopts.c

Index of all NEP routines Table of Contents for all manual pages Index of all manual pages