<div class="gmail_quote">On Thu, Jun 23, 2011 at 17:09, John Fettig <span dir="ltr">&lt;<a href="mailto:john.fettig@gmail.com">john.fettig@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":wa">Is there any way to access the map from global numbering to the<br>
compressed numbering?</div></blockquote></div><br><div>1. Certainly not before you create the matrix.</div><div><br></div><div>2. You have this information in some form if you can call MatCreateMPIAIJWithArrays(). Scan through the whole local block and make a sorted list of all the off-process entries. Then scan through again and look up each off-process entry in that sorted list to get its index.</div>
<div><br></div><div>3. But this is a waste of time, just call MatCreateMPIAIJWithArrays() or (better) use MatSetValues().</div>