# PCBJKOKKOSGetKSP
Gets the `KSP` context for the `PCBJKOKKOS` preconditioner 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCBJKOKKOSGetKSP(PC pc, KSP *ksp)
```
Not Collective but `KSP` returned is parallel if `PC` was parallel


## Input Parameter

- ***pc -*** the preconditioner context



## Output Parameter

- ***ksp -*** the `KSP` solver



## Notes
You must call `KSPSetUp()` before calling `PCBJKOKKOSGetKSP()`.

If the `PC` is not a `PCBJKOKKOS` object it raises an error




## See Also
 `PCBJKOKKOS`, `PCBJKOKKOSSetKSP()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bjacobi/bjkokkosbjkokkos.kokkos.cxx.html#PCBJKOKKOSGetKSP">src/ksp/pc/impls/bjacobi/bjkokkosbjkokkos.kokkos.cxx</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bjacobi/bjkokkos/bjkokkos.kokkos.cxx.html#PCBJKOKKOSGetKSP_BJKOKKOS">PCBJKOKKOSGetKSP_BJKOKKOS in src/ksp/pc/impls/bjacobi/bjkokkos/bjkokkos.kokkos.cxx</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/bjacobi/bjkokkosbjkokkos.kokkos.cxx)


[Index of all PC routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
