NEPRIISetLagPreconditioner — SLEPc 3.24.2 documentation

Skip to main content
`Ctrl`+`K`

# NEPRIISetLagPreconditioner

Determines when the preconditioner is rebuilt in the nonlinear solve.

## Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPRIISetLagPreconditioner(NEP nep,PetscInt lag)

Logically Collective

## Input Parameters

- nep - the nonlinear eigensolver context

- lag - 0 indicates NEVER rebuild, 1 means rebuild every time the Jacobian is computed within the nonlinear iteration, 2 means every second time the Jacobian is built, etc.

## Options Database Key

- -nep_rii_lag_preconditioner <lag> - the lag value

## Notes

The default is 1. The preconditioner is ALWAYS built in the first iteration of a nonlinear solve.

## See Also

NEP: Nonlinear Eigenvalue Problems, `NEPRII`, `NEPRIIGetLagPreconditioner()`

## Level

intermediate

## Location

src/nep/impls/rii/rii.c

## Examples

src/nep/tutorials/ex22f.F90
src/nep/tutorials/ex22.c
src/nep/tutorials/ex21.c

## Implementations

NEPRIISetLagPreconditioner_RII() in src/nep/impls/rii/rii.c

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