<div dir="ltr">If I assembly the matrix with MatSetValuesStencil and use KspSetOpreators for Ksp, do I need to call KspSetDM first?<div><br></div><div>What is the key difference or advantage of using KspSetComputeOperators against KspSetOperators?</div>
<div><br></div><div>Thanks you.</div><div><br></div><div>Xiangdong</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 25, 2014 at 4:24 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Xiangdong <<a href="mailto:epscodes@gmail.com">epscodes@gmail.com</a>> writes:<br>
> I am not clear about this. In this example, where is the format declaration<br>
> (e.g.,mpiaij) of Mat jac? Why is this mat jac always distributed in<br>
> a compatible way as the DM vectors?<br>
<br>
</div>src/ksp/ksp/examples/tutorials/ex25.c calls KSPSetDM and sets functions<br>
to assemble the matrices and right hand side. Those objects are created<br>
internally (you can use -dm_mat_type sbaij if you like) and the user<br>
doesn't have to see them.<br>
</blockquote></div><br></div>