<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">One way to do this is to call ISPartitioningCount() first to get the number of indices on each process and then call ISInvertPermutation() to get the IS that has the original global index. Here's what I've done in one of my code.<div><br></div><div><div>/* Convert the processor mapping IS to new global numbering */</div><div>    ierr = ISPartitioningToNumbering(is,&is_globalnew);CHKERRQ(ierr);</div><div>    PetscInt *nloc;</div><div>/* Convert new global numbering to old global numbering */</div><div>    ierr = PetscMalloc(nps*sizeof(PetscInt),&nloc);CHKERRQ(ierr);</div><div>    ierr = ISPartitioningCount(is,nps,nloc);CHKERRQ(ierr);  // nps is the number of processors.</div><div>    ierr = ISDestroy(is);CHKERRQ(ierr);</div><div>    ierr = ISInvertPermutation(is_globalnew,nloc[rank],&is);CHKERRQ(ierr);</div></div><div><br></div><div>The resultant "is" is the index set in the old global numbering.</div><div><br></div><div><div>Shri<br>
<br><div><div>On Aug 7, 2013, at 5:46 AM, 丁老师 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">In the <span style="line-height: normal; ">ISPartitioningToNumbering</span><span style="line-height: normal; ">(IS part,IS *is) </span></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span style="line-height: normal; ">is define the</span><span style="font-family: ''; font-size: medium; line-height: normal; ">e index set that defines the global numbers on each part.</span></div><div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><span style="font-family: ''; font-size: medium; line-height: normal; ">but how to get the original global index. </span></div><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></div></div></body></html>