slepc-3.18.2 2023-01-26
Report Typos and Errors

# NEPSetRG

Associates a region object to the nonlinear eigensolver.

### Synopsis

    #include "slepcnep.h"
    PetscErrorCode NEPSetRG(NEP nep,RG rg)

Collective on nep

### Input Parameters

| nep | - eigensolver context obtained from NEPCreate()
| rg | - the region object

### Note

Use NEPGetRG() to retrieve the region context (for example, to free it at the end of the computations).

### See Also

NEPGetRG()

### Level

advanced

### Location

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