<div class="gmail_quote">On Tue, Nov 8, 2011 at 06:33, Jed Brown <span dir="ltr">&lt;<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Provide a residual vector here (instead of PETSC_NULL). Since you provided a state Vec in TSSetSolution(), it is possible to create a Vec for the residual. I&#39;ll add that logic and improve the error message, but for now, just pass in the residual Vec.</blockquote>
</div><br><div>Also note that you can skip MatCreateSNESMF() and just pass -snes_mf_operator.</div>