# PCBJKOKKOSSetKSP
Sets the `KSP` context for `PCBJKOKKOS` 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode PCBJKOKKOSSetKSP(PC pc, KSP ksp)
```
Collective


## Input Parameters

- ***pc -*** the `PCBJKOKKOS` preconditioner context
- ***ksp -*** the `KSP` solver



## Notes
The `PC` and the `KSP` must have the same communicator

If the `PC` is not `PCBJKOKKOS` this function returns without doing anything



,seealso: `PCBJKOKKOSGetKSP()`, `PCBJKOKKOS`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/bjacobi/bjkokkosbjkokkos.kokkos.cxx.html#PCBJKOKKOSSetKSP">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#PCBJKOKKOSSetKSP_BJKOKKOS">PCBJKOKKOSSetKSP_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)  
