DSNEPSetRefine — SLEPc 3.25.1 documentation

Skip to main content
`Ctrl`+`K`

# DSNEPSetRefine

Sets the tolerance and the number of iterations of Newton iterative refinement for eigenpairs when solving a `DSNEP`.

## Synopsis

    #include "slepcds.h"
    PetscErrorCode DSNEPSetRefine(DS ds,PetscReal tol,PetscInt its)

Logically Collective

## Input Parameters

- ds - the direct solver context

- tol - the tolerance

- its - the number of iterations

## Options Database Keys

- -ds_nep_refine_tol tol - sets the tolerance

- -ds_nep_refine_its its - sets the number of Newton iterations

## Notes

Iterative refinement of eigenpairs is currently used only in the contour integral method.

Use `PETSC_CURRENT` to retain the current value of any of the parameters. Use `PETSC_DETERMINE` for either argument to assign a default value computed internally.

## See Also

DS: Direct Solver (or Dense System), `DSNEP`, `DSNEPGetRefine()`

## Level

advanced

## Location

src/sys/classes/ds/impls/nep/dsnep.c

## Implementations

DSNEPSetRefine_NEP() in src/sys/classes/ds/impls/nep/dsnep.c

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