<div dir="ltr">For the MatSetValuesStencil, should it always work in pair with DMCreateMatrix?<div><br></div><div>However, in some example, e.g., src/ksp/ksp/examples/tutorials/ex25.c, the DMCreateMatrix is never called. Is it because KspSetComputeOperators is used and DMCreateMatrix is called implicitly somewhere?</div>
<div><br></div><div>Thank 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 2:35 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="">Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> writes:<br>
> SNES ex19 uses 4 dof and is much simpler.<br>
<br>
</div>Yes, but it doesn't insert matrix entries.<br>
</blockquote></div><br></div>