# PCSPAISetMax
set the size of various working buffers in the `PCSPAI` preconditioner 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCSPAISetMax(PC pc, PetscInt max1)
```

## Input Parameters

- ***pc -*** the preconditioner
- ***n -*** size (default is 5000)





## See Also
 `PCSPAI`, `PCSetType()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/spai/ispai.c.html#PCSPAISetMax">src/ksp/pc/impls/spai/ispai.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/spai/ispai.c.html#PCSPAISetMax_SPAI">PCSPAISetMax_SPAI in src/ksp/pc/impls/spai/ispai.c</A><BR>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
