:orphan: # PCSPAI Use the Sparse Approximate Inverse method ## Options Database Keys - ***-pc_spai_epsilon -*** set tolerance - ***-pc_spai_nbstep -*** set nbsteps - ***-pc_spai_max -*** set max - ***-pc_spai_max_new -*** set maxnew - ***-pc_spai_block_size -*** set block size - ***-pc_spai_cache_size -*** set cache size - ***-pc_spai_sp -*** set sp - ***-pc_spai_set_verbose -*** verbose output ## Note This only works with `MATAIJ` matrices. ## References . * - Grote and Barnard (SIAM J. Sci. Comput.; vol 18, nr 3) ## See Also `PCCreate()`, `PCSetType()`, `PCType`, `PC`, `PCSPAISetEpsilon()`, `PCSPAISetMax()`, `PCSPAISetMaxNew()`, `PCSPAISetBlockSize()`, `PCSPAISetVerbose()`, `PCSPAISetSp()`, `PCSPAISetNBSteps()`, `PCSPAISetCacheSize()` ## Level beginner ## Location src/ksp/pc/impls/spai/ispai.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/spai/ispai.c) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)