NEPSetType — SLEPc 3.24.3 documentation

Skip to main content
`Ctrl`+`K`

# NEPSetType

Selects the particular solver to be used in the `NEP` object.

## Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPSetType(NEP nep,NEPType type)

Logically Collective

## Input Parameters

- nep - the nonlinear eigensolver context

- type - a known method

## Options Database Key

- -nep_type <type> - sets the method; use `-help` for a list of available methods

## Notes

See `NEPType` for available methods. The default is `NEPRII`.

Normally, it is best to use the `NEPSetFromOptions()` command and then set the `NEP` type from the options database rather than by using this routine. Using the options database provides the user with maximum flexibility in evaluating the different available methods. The `NEPSetType()` routine is provided for those situations where it is necessary to set the iterative solver independently of the command line or options database.

## See Also

NEP: Nonlinear Eigenvalue Problems, `NEPType`

## Level

intermediate

## Location

src/nep/interface/nepbasic.c

## Examples

src/nep/tutorials/ex27f.F90
src/nep/tutorials/ex21.c
src/nep/tutorials/ex42.c
src/nep/tutorials/ex27.c

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