:orphan: # MatLMVMSetJ0KSP Allows the user to provide a pre-configured KSP solver for the initial inverse-Jacobian approximation. This `KSP` solver should already contain all the operators necessary to perform the inversion. The LMVM-type matrix only calls `KSPSolve()` without changing any other options. ## Synopsis ``` #include "petscksp.h" PetscErrorCode MatLMVMSetJ0KSP(Mat B, KSP J0ksp) ``` ## Input Parameters - ***B -*** An LMVM-type matrix - ***J0ksp -*** `KSP` solver for the initial inverse-Jacobian application ## See Also [](ch_ksp), [LMVM Matrices](sec_matlmvm), `MATLMVM`, `MatLMVMGetJ0KSP()` ## Level advanced ## Location src/ksp/ksp/utils/lmvm/lmvmutils.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/utils/lmvm/lmvmutils.c) [Index of all KSP routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)