On Sun, Oct 14, 2012 at 7:14 AM, Bao Kai <span dir="ltr"><<a href="mailto:paeanball@gmail.com" target="_blank">paeanball@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi, all, <div><br></div><div>I want to check the exact Jacobian generated by SNES with fdcoloring with some small size problems.  I mean to display the actual matrix and rhs. </div></div></blockquote><div><br>
</div><div>You can use -snes_type test -snes_test_display or -snes_compare_explicit to "compare" the assembled matrix to one computed using FD. If you combine -snes_fd -snes_compare_explicit, the two matrices will be the same, but both will be printed.</div>
<div><br></div><div>You can also call SNESDefaultComputeJacobian() and MatView() directly from your code.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div>Could you please help to tell me how I can do that? </div>
<div><br></div><div>Thank you. </div><div><br></div><div>Best Regards, </div><span class="HOEnZb"><font color="#888888"><div>Kai</div></font></span></div>
</blockquote></div><br>