They are the same. This just pull out a pointer to the storage.<br><br> Matt<br><br><div class="gmail_quote">On Thu, Apr 2, 2009 at 11:54 AM, Khan, Irfan <span dir="ltr"><<a href="mailto:irfan.khan@gatech.edu">irfan.khan@gatech.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello<br>
I have a question about setting values in parallel vectors. Which of the following two options is more efficient or does it matter at all.<br>
<br>
Using VecGhostGetLocalForm:<br>
<br>
- Obtain the local array form of global vector using VeGhostGetLocalForm() and VecGetArray()<br>
- Fill in the values<br>
- Use VecGhostRestoreLocalForm() and VecRestoreArray()<br>
- Use VecGhostUpdateBegin() and VecGhostUpdateEnd()<br>
<br>
Using VecSetValues:<br>
<br>
- Fill in the values of the values in the global parallel vector using VecSetValues()<br>
- Use VecAssemblyBegin() and VecAssemblyEnd()<br>
<br>
<br>
Please note that in both the cases the values being filled are local values to the rank.<br>
<br>
Thanks<br>
Irfan<br>
Graduate Research Assistant<br>
Woodruff School of Mechanical Engineering<br>
Georgia Institute of Technology<br>
Atlanta, GA<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>