EPSKrylovSchurGetKSP — SLEPc 3.24.2 documentation

Skip to main content
`Ctrl`+`K`

# EPSKrylovSchurGetKSP

Retrieve the linear solver object associated with the internal `EPS` object in case of doing spectrum slicing for a computational interval.

## Synopsis

    #include "slepceps.h"
    PetscErrorCode EPSKrylovSchurGetKSP(EPS eps,KSP *ksp)

Collective

## Input Parameter

- eps - the linear eigensolver context

## Output Parameter

- ksp - the internal `KSP` object

## Notes

When invoked to compute all eigenvalues in an interval with spectrum slicing, `EPSKRYLOVSCHUR` creates another `EPS` object internally that is used to compute eigenvalues by chunks near selected shifts. This function allows access to the `KSP` object associated to this internal `EPS` object.

This function is only available for spectrum slicing runs, that is, when an interval has been given with `EPSSetInterval()` and `STSINVERT` is set. See more details in section Spectrum Slicing.

In case of having more than one partition, the returned `KSP` will be different in MPI processes belonging to different partitions. Hence, if required, `EPSKrylovSchurSetPartitions()` must be called BEFORE this function.

## See Also

EPS: Eigenvalue Problem Solver, Spectrum Slicing, `EPSKRYLOVSCHUR`, `EPSSetInterval()`, `EPSKrylovSchurSetPartitions()`

## Level

advanced

## Location

src/eps/impls/krylov/krylovschur/krylovschur.c

## Examples

src/eps/tutorials/ex12.c
src/eps/tutorials/ex25.c

## Implementations

EPSKrylovSchurGetKSP_KrylovSchur() in src/eps/impls/krylov/krylovschur/krylovschur.c

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