[petsc-users] Error: PCHYPRESetPoissonMatrix_HYPRE

Karthikeyan Chockalingam - STFC UKRI karthikeyan.chockalingam at stfc.ac.uk
Thu Sep 19 08:32:06 CDT 2024


Hello,

I would like to make the following hypre call HYPRE_AMSSetBetaPoissonMatrix(ams, NULL);

So it does look like ams_beta_is_zero has to be true
https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads*L325__;Iw!!G_uCfscf7eWS!bi4rdSrrVzBRHrD32vObvn-LFoZba_XXh9z72ayyPQYw-X-nyeVCVp60RVCQVwTZHjxW-LZch_l-DhhxHn9BXpWjJIqS1m2SRZrJ$ 

So would I end up calling PCHYPRESetPoissonMatrix_HYPRE with isalpha being false.
https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads*L1640__;Iw!!G_uCfscf7eWS!bi4rdSrrVzBRHrD32vObvn-LFoZba_XXh9z72ayyPQYw-X-nyeVCVp60RVCQVwTZHjxW-LZch_l-DhhxHn9BXpWjJIqS1lTIq-Ra$ 

But I get the following error from Libmesh: is it because of version incompatibility between PETSc and Hypre?

vector_fe_ex3.C:141:3: error: 'PCHYPRESetPoissonMatrix_HYPRE' was not declared in this scope; did you mean 'PCHYPRESetBetaPoissonMatrix'?
  141 |   PCHYPRESetPoissonMatrix_HYPRE(pc, A, false);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

I look forward to your response.

Kind regards,
Karthik

--
Karthik Chockalingam, Ph.D.
Senior Research Software Engineer
High Performance Systems Engineering Group
Hartree Centre | Science and Technology Facilities Council
karthikeyan.chockalingam at stfc.ac.uk<mailto:karthikeyan.chockalingam at stfc.ac.uk>

 [signature_3970890138]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240919/ebcd1b6d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 18270 bytes
Desc: image001.png
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240919/ebcd1b6d/attachment-0001.png>


More information about the petsc-users mailing list