slepc-3.6.3 2016-03-29
Report Typos and Errors

# NEPSetLagPreconditioner

Determines when the preconditioner is rebuilt in the nonlinear solve.

### Synopsis

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

Logically Collective on NEP

### Input Parameters

| nep | - the NEP 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 Keys

-nep_lag_preconditioner <lag> - Notes: The default is 1. The preconditioner is ALWAYS built in the first iteration of a nonlinear solve.

### See Also

NEPGetLagPreconditioner()

Location: src/nep/interface/nepopts.c
Index of all NEP routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/nep/examples/tutorials/ex20.c.html
src/nep/examples/tutorials/ex22.c.html