# PCHMGUseMatMAIJ
Set a flag that indicates if or not to use `MATMAIJ` for the interpolation matrices for saving memory 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCHMGUseMatMAIJ(PC pc, PetscBool usematmaij)
```
Logically Collective on pc


## Input Parameters

- ***pc -*** the `PCHMG` context
- ***usematmaij -*** `PETSC_TRUE` (default) to use `MATMAIJ` for interpolations.



## Options Database Key

- ***-pc_hmg_use_matmaij -*** <true | false >





## See Also
 `PCHMG`, `PCType`, `PCGAMG`

## Level
beginner

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

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex4.c.html">src/ksp/ksp/tutorials/ex4.c.html</A><BR>

## Implementations

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


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