<!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">
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; TEXT-ALIGN: justify; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; FONT-SIZE: 10.5pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-STYLE: normal; FONT-FAMILY: Verdana; COLOR: windowtext; FONT-WEIGHT: normal; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT color=#0000ff size=2 face=Verdana>hello, petsc teams,</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>If I&nbsp;want to 
use&nbsp;finite&nbsp;difference&nbsp;jacobian&nbsp;approximations,how should I 
define </FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>the function FormJacobian()? I don't get analytic 
jacobians.</FONT></DIV>
<DIV><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff>thanks,</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT><FONT color=#0000ff>leping</FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT><FONT color=#0000ff></FONT>&nbsp;</DIV>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana><FONT 
color=#0000ff>2010-05-02</FONT> </FONT></DIV><FONT color=#000080 size=2 
face=Verdana>
<HR style="WIDTH: 100px" align=left color=#b5c4df SIZE=1>
</FONT>
<DIV><FONT color=#c0c0c0 size=2 face=Verdana>&nbsp; 
<DIV></FONT>
<HR color=#b5c4df SIZE=1>
</DIV></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG> Jed Brown </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发送时间:</STRONG> 2010-05-02&nbsp; 20:10:20 
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>收件人:</STRONG> chenleping; PETSc users 
list </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG> Re: [petsc-users] about 
finite difference jacobian approximations </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>On&nbsp;Sat,&nbsp;1&nbsp;May&nbsp;2010&nbsp;15:35:25&nbsp;+0800,&nbsp;"=?gb2312?B?s8LA1sa9o6hMZXBpbmcgQ2hlbqOp?="&nbsp;&lt;chenleping@yahoo.cn&gt;&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;hello,&nbsp;petsc&nbsp;teams,</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;When&nbsp;I&nbsp;use&nbsp;finite&nbsp;difference&nbsp;jacobian&nbsp;approximations,&nbsp;I&nbsp;only&nbsp;find&nbsp;the</DIV>
<DIV>&gt;&nbsp;computation&nbsp;methods&nbsp;and&nbsp;results&nbsp;of&nbsp;jacobian&nbsp;matrix&nbsp;cannot&nbsp;influence</DIV>
<DIV>&gt;&nbsp;iterative&nbsp;process&nbsp;of&nbsp;snes.</DIV>
<DIV></DIV>
<DIV>I&nbsp;don't&nbsp;know&nbsp;what&nbsp;you're&nbsp;asking.&nbsp;&nbsp;The&nbsp;accuracy&nbsp;of&nbsp;the&nbsp;Jacobian&nbsp;certainly</DIV>
<DIV>can&nbsp;affect&nbsp;the&nbsp;convergence&nbsp;rate;&nbsp;for&nbsp;simple&nbsp;or&nbsp;well-conditioned</DIV>
<DIV>problems,&nbsp;finite&nbsp;difference&nbsp;Jacobians&nbsp;are&nbsp;usually&nbsp;reliable.&nbsp;&nbsp;Analytic</DIV>
<DIV>Jacobians,&nbsp;or&nbsp;Jacobians&nbsp;from&nbsp;automatic&nbsp;differentiation&nbsp;(AD)&nbsp;are&nbsp;usually</DIV>
<DIV>better&nbsp;when&nbsp;available&nbsp;and&nbsp;not&nbsp;too&nbsp;expensive&nbsp;to&nbsp;compute.&nbsp;&nbsp;Another&nbsp;common</DIV>
<DIV>thing&nbsp;is&nbsp;to&nbsp;assemble&nbsp;a&nbsp;"cheap"&nbsp;preconditioning&nbsp;matrix&nbsp;(dropping&nbsp;terms,</DIV>
<DIV>or&nbsp;with&nbsp;a&nbsp;lower&nbsp;order&nbsp;discretization)&nbsp;for&nbsp;use&nbsp;with&nbsp;a&nbsp;matrix-free</DIV>
<DIV>(usually&nbsp;finite&nbsp;difference&nbsp;or&nbsp;AD)&nbsp;operator.</DIV>
<DIV></DIV>
<DIV>Jed</DIV></FONT></DIV></BODY></HTML>