# PCASMSetSubMatType
Set the type of matrix used for `PCASM` subsolves 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCASMSetSubMatType(PC pc, MatType sub_mat_type)
```
Collective on pc


## Input Parameters

- ***pc             -*** the `PC` object
- ***sub_mat_type   -*** the `MatType`



## Options Database Key

- ***-pc_asm_sub_mat_type  <sub_mat_type> -*** Sets the matrix type used for subsolves, for example, seqaijviennacl.
If you specify a base name like aijviennacl, the corresponding sequential type is assumed.



## Note
See "${PETSC_DIR}/include/petscmat.h" for available types




## See Also
 `PCASM`, `PCASMGetSubMatType()`, `PCASM`, `PCSetType()`, `VecSetType()`, `MatType`, `Mat`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/asm/asm.c.html#PCASMSetSubMatType">src/ksp/pc/impls/asm/asm.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/asm/asm.c.html#PCASMSetSubMatType_ASM">PCASMSetSubMatType_ASM in src/ksp/pc/impls/asm/asm.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/asm/asm.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)  
