<div dir="ltr">Thank you Lisandro, that seems to work perfectly for what we want!</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 30, 2018 at 4:28 AM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com" target="_blank">dalcinl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">./example.exe -snes_test_jacobian -snes_type ksponly -ksp_type preonly<br>
-pc_type none -snes_convergence_test skip<br>
<div><div class="h5">On Sat, 30 Jun 2018 at 01:06, Alexander Lindsay<br>
<<a href="mailto:alexlindsay239@gmail.com">alexlindsay239@gmail.com</a>> wrote:<br>
><br>
> 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.<br>
><br>
> Alex<br>
><br>
> On Mon, Jun 4, 2018 at 4:26 PM, Kong, Fande <<a href="mailto:fande.kong@inl.gov">fande.kong@inl.gov</a>> wrote:<br>
>><br>
>> Thanks, Hong,<br>
>><br>
>> I see. It is better if "-snes_type test" did not exist at the first place.<br>
>><br>
>><br>
>> Fande,<br>
>><br>
>> On Mon, Jun 4, 2018 at 4:01 PM, Zhang, Hong <<a href="mailto:hongzhang@anl.gov">hongzhang@anl.gov</a>> wrote:<br>
>>><br>
>>><br>
>>><br>
>>> > On Jun 4, 2018, at 4:59 PM, Zhang, Hong <<a href="mailto:hongzhang@anl.gov">hongzhang@anl.gov</a>> wrote:<br>
>>> ><br>
>>> > -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.<br>
>>><br>
>>> It was meant to be "-snes_type test".<br>
>>><br>
>>> > Hong (Mr.)<br>
>>> ><br>
>>> >> On Jun 4, 2018, at 3:27 PM, Kong, Fande <<a href="mailto:fande.kong@inl.gov">fande.kong@inl.gov</a>> wrote:<br>
>>> >><br>
>>> >> Hi PETSc Team,<br>
>>> >><br>
>>> >> I was wondering if "snes_type test" has been gone? Quite a few MOOSE users use this option to test their Jacobian matrices.<br>
>>> >><br>
>>> >> If it is gone, any reason?<br>
>>> >><br>
>>> >> Fande,<br>
>>> ><br>
>>><br>
>><br>
><br>
<br>
<br>
</div></div>-- <br>
Lisandro Dalcin<br>
============<br>
Research Scientist<br>
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)<br>
Extreme Computing Research Center (ECRC)<br>
King Abdullah University of Science and Technology (KAUST)<br>
<a href="http://ecrc.kaust.edu.sa/" rel="noreferrer" target="_blank">http://ecrc.kaust.edu.sa/</a><br>
<br>
4700 King Abdullah University of Science and Technology<br>
al-Khawarizmi Bldg (Bldg 1), Office # 0109<br>
Thuwal 23955-6900, Kingdom of Saudi Arabia<br>
<a href="http://www.kaust.edu.sa" rel="noreferrer" target="_blank">http://www.kaust.edu.sa</a><br>
<br>
Office Phone: +966 12 808-0459<br>
</blockquote></div><br></div>