<p>Dear Matthew:</p><p>The question is that I can't sort the IS. Because I need extract the matrix according to the index of IS. I have tried to use MatPermute(). However, there is not MPIDense-based. I am wondering why MatGetSubMatrices() need use the sorted IS. Thanks a lot.<br>
</p><p>Regards,</p><p>Yujie</p><br><div class="gmail_quote">On Tue, Dec 23, 2008 at 2:06 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>You can sort them with ISSort.</div>
<div> </div>
<div> Matt<br><br></div><div><div class="Wj3C7c">
<div class="gmail_quote">On Tue, Dec 23, 2008 at 12:35 PM, Yujie <span dir="ltr"><<a href="mailto:recrusader@gmail.com" target="_blank">recrusader@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<p>Hi, PETSc developer<br></p>
<p>I am using MatGetSubMatrices() for my application. Because I need to exact several matrices from the old one according to my index sets. These index sets are not sorted. To MPIDense matrix, it didn't work. could you give me some help? thanks a lot.</p>
<p>Happy holiday:).</p>
<p>Regards,</p>
<p>Yujie</p></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <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>
</font></blockquote></div><br>