On Thu, Sep 19, 2024 at 9:33 AM Karthikeyan Chockalingam - STFC UKRI via
petsc-users <petsc-users@mcs.anl.gov> wrote:

> 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!eK8fCGlsadPLSpAOiMsKgfe5Rvn5AFmIy6c98fmu8MdOAd4PzvTw4sthhEHfPWCQCq2wOpwArn1DAETA90wv$
>  
> <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!eK8fCGlsadPLSpAOiMsKgfe5Rvn5AFmIy6c98fmu8MdOAd4PzvTw4sthhEHfPWCQCq2wOpwArn1DAAWh3H1U$
>  
> <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);
>
>       |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

You are misunderstanding the API organization. You are intended to call
PCHYPRESetBetaPoissonMatrix(), which
calls PCHYPRESetPoissonMatrix_HYPRE(..., PETSC_FALSE);

  Thanks,

     Matt


> 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.chockalin...@stfc.ac.uk
>
>
>
>  [image: signature_3970890138]
>
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://urldefense.us/v3/__https://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eK8fCGlsadPLSpAOiMsKgfe5Rvn5AFmIy6c98fmu8MdOAd4PzvTw4sthhEHfPWCQCq2wOpwArn1DAB18Lnc5$
  
<https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eK8fCGlsadPLSpAOiMsKgfe5Rvn5AFmIy6c98fmu8MdOAd4PzvTw4sthhEHfPWCQCq2wOpwArn1DAPapnkKX$
 >

Reply via email to