On Wed, Jan 14, 2009 at 11:25 AM, Tim Kroeger <span dir="ltr">&lt;<a href="mailto:tim.kroeger@cevis.uni-bremen.de">tim.kroeger@cevis.uni-bremen.de</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear PETSc team,<br>
<br>
When I create a vector using VecCreateGhost(), and later on I want to access the value of one of the ghost cells, and all I know is the *global* index of that value, what is the correct thing to do? &nbsp;I understand that the ghost values are stored at the end of the vector and that this is done in the order that I used when creating the vector, but do I have to remember that order myself, or is there some method to query the local index corresponding to a global index?</blockquote>
<div><br>Unfortunately, we never create the inverse mapping.<br><br>&nbsp;&nbsp; Matt<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Best Regards,<br>
<br>
Tim<br><font color="#888888">
<br>
-- <br>
Dr. Tim Kroeger<br>
<a href="mailto:tim.kroeger@mevis.fraunhofer.de" target="_blank">tim.kroeger@mevis.fraunhofer.de</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Phone +49-421-218-7710<br>
<a href="mailto:tim.kroeger@cevis.uni-bremen.de" target="_blank">tim.kroeger@cevis.uni-bremen.de</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fax &nbsp; +49-421-218-4236<br>
<br>
Fraunhofer MEVIS, Institute for Medical Image Computing<br>
Universitaetsallee 29, 28359 Bremen, Germany<br>
<br>
</font></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>