<!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> </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> </DIV>
<DIV><FONT color=#0000ff size=3>but x is defined by Vec, I don't know how to
get a value of x, for example, the 3rd value.</FONT></DIV>
<DIV><FONT face=Verdana></FONT><FONT color=#0000ff size=3></FONT> </DIV>
<DIV><FONT face=Verdana></FONT><FONT color=#0000ff size=3>thanks,</FONT></DIV>
<DIV><FONT color=#0000ff size=3></FONT> </DIV>
<DIV><FONT color=#0000ff size=3>leping</FONT></DIV>
<DIV><FONT color=#0000ff size=3 face=Verdana> <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 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 Thu, 15 Apr 2010 21:17:19 +0800, "=?gb2312?B?s8LA1sa9?=" <chenleping@yahoo.cn> wrote:</DIV>
<DIV>> petsc teams,</DIV>
<DIV>> </DIV>
<DIV>> for following definitions:</DIV>
<DIV>> </DIV>
<DIV>> double precision u(n)</DIV>
<DIV>> Vec v</DIV>
<DIV>> </DIV>
<DIV>> then, how can I actualize mutual updating between u(n) and v?</DIV>
<DIV></DIV>
<DIV>I'm not sure what you mean, if these are the same quantity then they</DIV>
<DIV>shouldn't be stored in separate locations. See VecGetArray:</DIV>
<DIV></DIV>
<DIV> 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>