# PCHYPRESetBetaPoissonMatrix#

Set Poisson matrix for PCHYPRE of type ams

## Synopsis#

#include "petscpc.h"
PetscErrorCode PCHYPRESetBetaPoissonMatrix(PC pc, Mat A)


Collective

## Input Parameters#

• pc - the preconditioning context

• A - the matrix, or NULL to turn it off

## Note#

A should be obtained by discretizing the Poisson problem with linear finite elements.

## Developer Note#

This automatically converts the matrix to MATHYPRE if it is not already of that type

If this is only for PCHYPRE type of ams it should be called PCHYPREAMSPCHYPRESetBetaPoissonMatrix()

PCHYPRE, PCHYPRESetDiscreteGradient(), PCHYPRESetDiscreteCurl(), PCHYPRESetAlphaPoissonMatrix()