Re: [petsc-users] 'Preconditioning' with lower-order method

2024-03-04 Thread Zou, Ling via petsc-users
From: Zhang, Hong Date: Monday, March 4, 2024 at 6:34 PM To: Zou, Ling Cc: Jed Brown , Barry Smith , petsc-users@mcs.anl.gov Subject: Re: [petsc-users] 'Preconditioning' with lower-order method Ling, Are you using PETSc TS? If so, it may worth trying Crank-Nicolson first to see

Re: [petsc-users] 'Preconditioning' with lower-order method

2024-03-04 Thread Zhang, Hong via petsc-users
Jed Brown mailto:j...@jedbrown.org>> Date: Sunday, March 3, 2024 at 11:35 PM To: Zou, Ling mailto:l...@anl.gov>>, Barry Smith mailto:bsm...@petsc.dev>> Cc: petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov> mailto:petsc-users@mcs.anl.gov>> Subject: Re: [petsc-

Re: [petsc-users] 'Preconditioning' with lower-order method

2024-03-03 Thread Zou, Ling via petsc-users
From: Jed Brown Date: Sunday, March 3, 2024 at 11:35 PM To: Zou, Ling , Barry Smith Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] 'Preconditioning' with lower-order method If you're having PETSc use coloring and have confirmed that the stencil is sufficient, then it would

Re: [petsc-users] 'Preconditioning' with lower-order method

2024-03-03 Thread Jed Brown
> > > On Mar 3, 2024, at 11:42 AM, Zou, Ling via petsc-users wrote: > > Original email may have been sent to the incorrect place. > See below. > > -Ling > > From: Zou, Ling > > Date: Sunday, March 3, 2024 at 10:34 AM > To: petsc-users > > Subject: 'Pre

Re: [petsc-users] 'Preconditioning' with lower-order method

2024-03-03 Thread Zou, Ling via petsc-users
not in the 1st order. For the same problem, the wall time is 10 sec vs 6 sec. I would be happy if I can reduce 2 sec for the 2nd order method. -Ling From: Barry Smith Date: Sunday, March 3, 2024 at 12:06 PM To: Zou, Ling Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] 'Preconditioning

Re: [petsc-users] 'Preconditioning' with lower-order method

2024-03-03 Thread Barry Smith
Are you forming the Jacobian for the first and second order cases inside of Newton? You can run both with -log_view to see how much time is spent in the various events (compute function, compute Jacobian, linear solve, ...) for the two cases and compare them. > On Mar 3, 2024, at