<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css>@import url( C:\Users\chenleping\AppData\Local\Microsoft\Windows\Temporary Internet Files\scrollbar.css );
</STYLE>

<STYLE type=text/css>@import url( C:\Users\chenleping\AppData\Local\Microsoft\Windows\Temporary Internet Files\scrollbar.css );
</STYLE>

<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=3 face=Verdana>hello, petsc teams,</FONT></DIV>
<DIV><FONT color=#0000ff size=3></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=3>when I use FormFuncion(), I need use a value of 
x;</FONT></DIV>
<DIV><FONT color=#0000ff size=3></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=3>but x is defined by Vec, I don't know how to 
get&nbsp; a value of x, for example, the 3rd value.</FONT></DIV>
<DIV><FONT face=Verdana></FONT><FONT color=#0000ff size=3></FONT>&nbsp;</DIV>
<DIV><FONT face=Verdana></FONT><FONT color=#0000ff size=3>thanks,</FONT></DIV>
<DIV><FONT color=#0000ff size=3></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff size=3>leping</FONT></DIV>
<DIV><FONT color=#0000ff size=3 face=Verdana>&nbsp;<SPAN> 
<DIV></SPAN></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-04-16&nbsp; 21:21:47 
</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] array and 
vec </FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<DIV>On&nbsp;Thu,&nbsp;15&nbsp;Apr&nbsp;2010&nbsp;21:17:19&nbsp;+0800,&nbsp;"=?gb2312?B?s8LA1sa9?="&nbsp;&lt;chenleping@yahoo.cn&gt;&nbsp;wrote:</DIV>
<DIV>&gt;&nbsp;petsc&nbsp;teams,</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;for&nbsp;following&nbsp;definitions:</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;double&nbsp;precision&nbsp;u(n)</DIV>
<DIV>&gt;&nbsp;Vec&nbsp;&nbsp;v</DIV>
<DIV>&gt;&nbsp;</DIV>
<DIV>&gt;&nbsp;then,&nbsp;how&nbsp;can&nbsp;I&nbsp;actualize&nbsp;mutual&nbsp;updating&nbsp;between&nbsp;u(n)&nbsp;and&nbsp;v?</DIV>
<DIV></DIV>
<DIV>I'm&nbsp;not&nbsp;sure&nbsp;what&nbsp;you&nbsp;mean,&nbsp;if&nbsp;these&nbsp;are&nbsp;the&nbsp;same&nbsp;quantity&nbsp;then&nbsp;they</DIV>
<DIV>shouldn't&nbsp;be&nbsp;stored&nbsp;in&nbsp;separate&nbsp;locations.&nbsp;&nbsp;See&nbsp;VecGetArray:</DIV>
<DIV></DIV>
<DIV>&nbsp;&nbsp;http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/docs/manualpages/Vec/VecGetArray.html</DIV>
<DIV></DIV>
<DIV>Jed</DIV></FONT></DIV></BODY></HTML>