# PCHYPRESetInterpolations
Set interpolation matrices for `PCHYPRE` type of ams or ads 
## Synopsis
```
#include "petscpc.h" 
PetscErrorCode PCHYPRESetInterpolations(PC pc, PetscInt dim, Mat RT_PiFull, Mat RT_Pi[], Mat ND_PiFull, Mat ND_Pi[])
```
Collective


## Input Parameters

- ***pc -*** the preconditioning context
- ***dim -*** the dimension of the problem, only used in AMS


- ***RT_PiFull -*** Raviart-Thomas interpolation matrix


- ***RT_Pi -*** x/y/z component of Raviart-Thomas interpolation matrix


- ***ND_PiFull -*** Nedelec interpolation matrix


- ***ND_Pi -*** x/y/z component of Nedelec interpolation matrix





## Notes
For AMS, only Nedelec interpolation matrices are needed, the Raviart-Thomas interpolation matrices can be set to NULL.

For ADS, both type of interpolation matrices are needed.


## Developer Note
This automatically converts the matrix to `MATHYPRE` if it is not already of that type


## See Also
 `PCHYPRE`

## Level
intermediate

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

## Implementations

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


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