<div dir="ltr"><div dir="ltr">On Thu, Sep 19, 2024 at 9:33 AM Karthikeyan Chockalingam - STFC UKRI via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg5090005838326608412">
<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="m_5090005838326608412WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">Hello,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">I would like to make the following hypre call HYPRE_AMSSetBetaPoissonMatrix(ams, NULL);<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">So it does look like ams_beta_is_zero has to be true<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><a href="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$" title="https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads#L325" target="_blank">https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads#L325</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">So would I end up calling PCHYPRESetPoissonMatrix_HYPRE with isalpha being false.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><a href="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$" title="https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads#L1640" target="_blank">https://gitlab.com/petsc/petsc/-/blob/main/src/ksp/pc/impls/hypre/hypre.c?ref_type=heads#L1640</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">But I get the following error from Libmesh: is it because of version incompatibility between PETSc and Hypre?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">vector_fe_ex3.C:141:3: error: 'PCHYPRESetPoissonMatrix_HYPRE' was not declared in this scope; did you mean 'PCHYPRESetBetaPoissonMatrix'?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> 141 | PCHYPRESetPoissonMatrix_HYPRE(pc, A, false);<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~</span></p></div></div></div></blockquote><div><br></div><div>You are misunderstanding the API organization. You are intended to call PCHYPRESetBetaPoissonMatrix(), which</div><div>calls <span style="font-size:14.6667px">PCHYPRESetPoissonMatrix_HYPRE(..., PETSC_FALSE);</span></div><div><span style="font-size:14.6667px"><br></span></div><div><span style="font-size:14.6667px"> Thanks,</span></div><div><span style="font-size:14.6667px"><br></span></div><div><span style="font-size:14.6667px"> Matt</span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg5090005838326608412"><div lang="EN-GB" style="overflow-wrap: break-word;"><div class="m_5090005838326608412WordSection1">
<p class="MsoNormal"><span style="font-size:11pt">I look forward to your response.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Kind regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt">Karthik<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif">-- <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:rgb(45,45,98)">Karthik Chockalingam, Ph.D.<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:black">Senior Research Software Engineer</span><span style="font-size:10.5pt;font-family:Calibri,sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:black">High Performance Systems Engineering Group</span><span style="font-size:10.5pt;font-family:Calibri,sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:black">Hartree Centre | Science and Technology Facilities Council</span><span style="font-size:10.5pt;font-family:Calibri,sans-serif;color:black"><u></u><u></u></span></p>
<p class="MsoNormal"><a href="mailto:karthikeyan.chockalingam@stfc.ac.uk" target="_blank"><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:rgb(5,99,193)">karthikeyan.chockalingam@stfc.ac.uk</span></a><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(33,33,33)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:"Times New Roman",serif;color:black"> </span><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:rgb(65,65,65)"> </span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(33,33,33)"><u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.5pt;font-family:Arial,sans-serif;color:rgb(65,65,65)"> </span></b><span style="font-family:"Times New Roman",serif;color:rgb(31,73,125)"><img border="0" width="254" height="116" style="width: 2.6458in; height: 1.2083in;" id="m_5090005838326608412Picture_x0020_1" src="cid:ii_1920aa72b384cff311" alt="signature_3970890138"></span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(33,33,33)"><u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="https://urldefense.us/v3/__http://www.cse.buffalo.edu/*knepley/__;fg!!G_uCfscf7eWS!eK8fCGlsadPLSpAOiMsKgfe5Rvn5AFmIy6c98fmu8MdOAd4PzvTw4sthhEHfPWCQCq2wOpwArn1DAPapnkKX$" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>