Re: [petsc-users] Hypre AMS usage

2024-09-13 Thread Matthew Knepley
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

Re: [petsc-users] Hypre AMS usage

2024-09-10 Thread Matthew Knepley
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. > > > > > >

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Matthew Knepley
> // Set discrete gradient > > petscErr = PCHYPRESetDiscreteGradient(pc, par_G); > > > > // Set vertex coordinates > > petscErr = PCHYPRESetEdgeConstantVectors(pc, par_xvec, par_yvec, > par_zvec); > > > > > > *From: *Matthew Knepley > *Date:

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
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@

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Matthew Knepley
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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
,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,

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Matthew Knepley
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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Matthew Knepley
.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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Matthew Knepley
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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Stefano Zampini
> >> 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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Matthew Knepley
> > *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

Re: [petsc-users] Hypre AMS usage

2024-09-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
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

Re: [petsc-users] Hypre AMS usage

2024-09-06 Thread Pierre Jolivet
> 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

Re: [petsc-users] Hypre AMS usage

2024-09-06 Thread Matthew Knepley
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

[petsc-users] Hypre AMS usage

2024-09-06 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
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