[petsc-users] "snes_type test" is gone?

Alexander Lindsay alexlindsay239 at gmail.com
Mon Jul 2 10:17:15 CDT 2018


Thank you Lisandro, that seems to work perfectly for what we want!

On Sat, Jun 30, 2018 at 4:28 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote:

> ./example.exe -snes_test_jacobian -snes_type ksponly -ksp_type preonly
> -pc_type none -snes_convergence_test skip
> On Sat, 30 Jun 2018 at 01:06, Alexander Lindsay
> <alexlindsay239 at gmail.com> wrote:
> >
> > Is there a way to mimic the behavior of `-snes_type test` with new
> PETSc? E.g. don't attempt to perform any solves? They're stupid but we have
> a bunch of tests in MOOSE that are set-up only to test the Jacobian, and
> any attempts to actually solve the system are disastrous. I can hack around
> this by doing things like setting the convergence reason to
> `SNES_CONVERGED_ITS` and similarly for ksp, making sure I use `-pc_type
> gamg` since there are missing Jacobian diagonal entries, etc. but this
> doesn't seem ideal.
> >
> > Alex
> >
> > On Mon, Jun 4, 2018 at 4:26 PM, Kong, Fande <fande.kong at inl.gov> wrote:
> >>
> >> Thanks, Hong,
> >>
> >> I see. It is better if "-snes_type test" did not exist at the first
> place.
> >>
> >>
> >> Fande,
> >>
> >> On Mon, Jun 4, 2018 at 4:01 PM, Zhang, Hong <hongzhang at anl.gov> wrote:
> >>>
> >>>
> >>>
> >>> > On Jun 4, 2018, at 4:59 PM, Zhang, Hong <hongzhang at anl.gov> wrote:
> >>> >
> >>> > -snes_type has been removed. We can just use -snes_test_jacobian
> instead. Note that the test is done every time the Jacobian is computed.
> >>>
> >>> It was meant to be "-snes_type test".
> >>>
> >>> > Hong (Mr.)
> >>> >
> >>> >> On Jun 4, 2018, at 3:27 PM, Kong, Fande <fande.kong at inl.gov> wrote:
> >>> >>
> >>> >> Hi PETSc Team,
> >>> >>
> >>> >> I was wondering if "snes_type test" has been gone? Quite a few
> MOOSE users use this option to test their Jacobian matrices.
> >>> >>
> >>> >> If it is gone, any reason?
> >>> >>
> >>> >> Fande,
> >>> >
> >>>
> >>
> >
>
>
> --
> Lisandro Dalcin
> ============
> Research Scientist
> Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
> Extreme Computing Research Center (ECRC)
> King Abdullah University of Science and Technology (KAUST)
> http://ecrc.kaust.edu.sa/
>
> 4700 King Abdullah University of Science and Technology
> al-Khawarizmi Bldg (Bldg 1), Office # 0109
> Thuwal 23955-6900, Kingdom of Saudi Arabia
> http://www.kaust.edu.sa
>
> Office Phone: +966 12 808-0459
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180702/7d2e31c4/attachment.html>


More information about the petsc-users mailing list