uesday, 10 September 2024 at 19:22
> *To: *Chockalingam, Karthikeyan (STFC,DL,HC) <
> karthikeyan.chockalin...@stfc.ac.uk>
> *Cc: *petsc-users@mcs.anl.gov
> *Subject: *Re: [petsc-users] Hypre AMS usage
>
> On Tue, Sep 10, 2024 at 1:16 PM Karthikeyan Chockalingam - STFC U
jac->as_amg_alpha_theta,
> jac->as_amg_alpha_opts[3], /* AMG interp_type */
>
>
> jac->as_amg_alpha_opts[4]); /*
> AMG Pmax */
>
> }
>
> Kind regards,
>
> Karthik.
>
>
>
>
>
>
> // Set discrete gradient
>
> petscErr = PCHYPRESetDiscreteGradient(pc, par_G);
>
>
>
> // Set vertex coordinates
>
> petscErr = PCHYPRESetEdgeConstantVectors(pc, par_xvec, par_yvec,
> par_zvec);
>
>
>
>
>
> *From: *Matthew Knepley
> *Date:
petscErr = PCHYPRESetDiscreteGradient(pc, par_G);
// Set vertex coordinates
petscErr = PCHYPRESetEdgeConstantVectors(pc, par_xvec, par_yvec, par_zvec);
From: Matthew Knepley
Date: Monday, 9 September 2024 at 21:11
To: Chockalingam, Karthikeyan (STFC,DL,HC)
Cc: Stefano Zampini , petsc-users@
TFC,DL,HC) <
> karthikeyan.chockalin...@stfc.ac.uk>
> *Cc: *Stefano Zampini , petsc-users@mcs.anl.gov
>
> *Subject: *Re: [petsc-users] Hypre AMS usage
>
> On Mon, Sep 9, 2024 at 3:38 PM Karthikeyan Chockalingam - STFC UKRI <
> karthikeyan.chockalin...@stfc.ac.uk> wrot
,HC)
Cc: Stefano Zampini , petsc-users@mcs.anl.gov
Subject: Re: [petsc-users] Hypre AMS usage
On Mon, Sep 9, 2024 at 3:38 PM Karthikeyan Chockalingam - STFC UKRI
mailto:karthikeyan.chockalin...@stfc.ac.uk>>
wrote:
I didn’t know how to check the pc type but adding
petscErr = PCSetType(pc,
the two functions after KSPSetFromOptions() did not work either.
>
>
>
> Can you check that the PC has the correct type when you call it?
>
>
>
> Thanks,
>
>
>
> Matt
>
>
>
> Everything works from the command line.
>
> I haven’t set KS
etFromOptions(ksp);
// Set pc type
petscErr = PCSetType(pc, "hypre");
// Set discrete gradient
petscErr = PCHYPRESetDiscreteGradient(pc, par_G);
// Set vertex coordinates
petscErr = PCHYPRESetEdgeConstantVectors(pc, par_xvec, par_yvec, par_zvec);
From: Matthew Knepley
D
.ac.uk>
> *Cc: *Stefano Zampini , petsc-users@mcs.anl.gov
>
> *Subject: *Re: [petsc-users] Hypre AMS usage
>
> On Mon, Sep 9, 2024 at 1:21 PM Karthikeyan Chockalingam - STFC UKRI <
> karthikeyan.chockalin...@stfc.ac.uk> wrote:
>
> Hi Stefano,
>
>
>
> Thank yo
Zampini , petsc-users@mcs.anl.gov
Subject: Re: [petsc-users] Hypre AMS usage
On Mon, Sep 9, 2024 at 1:21 PM Karthikeyan Chockalingam - STFC UKRI
mailto:karthikeyan.chockalin...@stfc.ac.uk>>
wrote:
Hi Stefano,
Thank you. That was helpful. I tried the following:
petscErr = PetscOptionsSe
arthikeyan.chockalingam/moose/petsc/src/ksp/ksp/interface/itfunc.c:1080
>
> libMesh terminating:
>
> HYPRE AMS preconditioner needs either the coordinate vectors via
> PCSetCoordinates() or the edge constant vectors via
> PCHYPRESetEdgeConstantVectors() or the interpolation matrix via
oordinates() or the edge constant vectors via
PCHYPRESetEdgeConstantVectors() or the interpolation matrix via
PCHYPRESetInterpolations()
From: Stefano Zampini
Date: Monday, 9 September 2024 at 17:02
To: Matthew Knepley
Cc: Chockalingam, Karthikeyan (STFC,DL,HC)
, petsc-users@mcs.anl.gov
Subject: Re: [petsc-u
>
>> Kind regards,
>>
>> Karthik.
>>
>>
>>
>> *From: *Matthew Knepley
>> *Date: *Friday, 6 September 2024 at 17:57
>> *To: *Chockalingam, Karthikeyan (STFC,DL,HC) <
>> karthikeyan.chockalin...@stfc.ac.uk>
>> *Cc: *petsc-users@mcs.an
>
> *From: *Matthew Knepley
> *Date: *Friday, 6 September 2024 at 17:57
> *To: *Chockalingam, Karthikeyan (STFC,DL,HC) <
> karthikeyan.chockalin...@stfc.ac.uk>
> *Cc: *petsc-users@mcs.anl.gov
> *Subject: *Re: [petsc-users] Hypre AMS usage
>
> On Fri, Sep 6, 2024 at 11
u know where I can look for the equivalent PETSc commands? Thank you.
Kind regards,
Karthik.
From: Matthew Knepley
Date: Friday, 6 September 2024 at 17:57
To: Chockalingam, Karthikeyan (STFC,DL,HC)
Cc: petsc-users@mcs.anl.gov
Subject: Re: [petsc-users] Hypre AMS usage
On Fri, Sep 6, 2024 at 11
> On 6 Sep 2024, at 6:56 PM, Matthew Knepley wrote:
>
> On Fri, Sep 6, 2024 at 11:37 AM Karthikeyan Chockalingam - STFC UKRI via
> petsc-users mailto:petsc-users@mcs.anl.gov>> wrote:
>> Hello,
>>
>>
>>
>> I am trying to use the Hypre AMS preconditioner for the first time.
>>
>>
>>
>> I
On Fri, Sep 6, 2024 at 11:37 AM Karthikeyan Chockalingam - STFC UKRI via
petsc-users wrote:
> Hello,
>
>
>
> I am trying to use the Hypre AMS preconditioner for the first time.
>
>
>
> I am following the example problem from Hypre
>
>
> https://urldefense.us/v3/__https://github.com/hypre-space/hy
Hello,
I am trying to use the Hypre AMS preconditioner for the first time.
I am following the example problem from Hypre
https://urldefense.us/v3/__https://github.com/hypre-space/hypre/blob/3caa81955eb8d1b4e35d9b450e27cf6d07b50f6e/src/examples/ex15.c*L954__;Iw!!G_uCfscf7eWS!biuCOXkV-qD-e8iTXiwaD9
18 matches
Mail list logo