On Mon, Jun 20, 2011 at 9:40 PM, Tian(ICT) <rongtian at ncic.ac.cn> wrote:
> Hi, > Good morning/evening! > I have this issue for quite a while. 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. > > However, when runing the same thing in command line (still a debug > compilation), I can see FormJacobian was called correctly. > > Any hint? > My guess is that you are getting the matrix-free option from somewhere (maybe a .petscrc file?). You can use -options_dump to see everything passed in. If not, look at SNESSetFromOptions() in the debugger, and see why it is choosing MF. Matt > Rong > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110620/53547d08/attachment-0001.htm>
