<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16535"><LINK rel=stylesheet 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#0000ff size=2 face=Verdana>petsc teams,</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>When I use SNES, I find my program&nbsp;iterated many 
times but x vector and residual vector</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>remained unchanged, that is to say,no convergence.I 
used finite&nbsp;difference&nbsp;jacobian&nbsp;approximations,</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>but I cannot confirm the jacobian matrix structure is 
right.Whether the matrix structure will influence</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>the convergence of SNES&nbsp;or not? Why does&nbsp;my x 
vector and residual vector <FONT color=#0000ff>remained 
unchanged?</FONT></FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
call&nbsp;FormJacobian(snes,x,J,J,flag,dummy,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;MatGetColoring(J,MATCOLORING_SL,iscoloring,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;MatFDColoringCreate(J,iscoloring,fdcoloring,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;ISColoringDestroy(iscoloring,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;MatFDColoringSetFromOptions(fdcoloring,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;MatFDColoringSetFunction(fdcoloring,FormFunction,</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;&nbsp;&nbsp;PETSC_NULL_OBJECT,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;SNESSetJacobian(snes,J,J,SNESDefaultComputeJacobianColor,</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;&nbsp;fdcoloring,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;SNESGetKSP(snes,ksp,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;KSPGetPC(ksp,pc,ierr)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;call&nbsp;SNESSolve(snes,PETSC_NULL_OBJECT,petscu,ierr)</DIV>
<DIV><FONT color=#0000ff>Thanks,</FONT></DIV>
<DIV><FONT color=#0000ff>leping</FONT></DIV></DIV>
<DIV><FONT size=2 face=Verdana><FONT color=#c0c0c0 size=2 face=Verdana><FONT 
size=2 face=Verdana><FONT color=#c0c0c0 size=2 face=Verdana><FONT 
color=#000000><FONT color=#0000ff size=3 
face=ËÎÌå></FONT>&nbsp;</DIV></FONT></FONT></FONT></FONT></FONT></BODY></HTML>