<div class="gmail_quote">On Mon, Jun 20, 2011 at 23:40, Tian(ICT) <span dir="ltr"><<a href="mailto:rongtian@ncic.ac.cn">rongtian@ncic.ac.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Using MSVC with Petsc, when debuging the code, the FormJacobian was never called, instead calling "MatMFFDComputeJacobian(SNES snes,Vec x,Mat *jac,Mat *B,MatStructure *flag,void *dummy)", though I donot use matrix free option.</blockquote>
</div><br><div>Is there something in the environment, in a ".petscrc" in the directory MSVC is running it in, or in an extra command-line parameter that MSVC is implicitly passing?</div><div><br></div><div>If you can you use a command-line debugger like gdb, then you can set a breakpoint in SNESSetJacobian() and see where it's getting changed from.</div>