<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Nov 12, 2013 at 9:59 AM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">Michael Lange <<a href="mailto:michael.lange@imperial.ac.uk">michael.lange@imperial.ac.uk</a>> writes:<br>

<br>
> Hi Matt,<br>
><br>
> Thanks for the clarification, this does make sense. I have achieved the<br>
> local DoF ordering I want by only permuting the offsets in the created<br>
> section. However, I am now trying to extract the according halo exchange<br>
> information from the associated PetscSF object and, although the local<br>
> leafs have been renumbered according to my permutation, the roots they<br>
> are connected to have not been updated. Is there an easy way to update<br>
> the roots or re-initialise the PetscSF from the reordered section?<br>
<br>
</div>You can SFBcast the new root numbers and create a new SF.<br>
<br>
Since this is a somewhat common operation that can be optimized by the<br>
SF implementation, it may make sense to provide PetscSFMoveRoots() or<br>
some such.<br>
</blockquote></div><br>I did not read this closely enough. This is not the problem. You have not changed</div><div class="gmail_extra">the point order, so the PetscSF should have been created correctly.  You global</div>
<div class="gmail_extra">and local vectors will have different orders, but the exchange should be correct.</div><div class="gmail_extra">We need a test for this case so everything can be explicit.</div><div class="gmail_extra">
<br></div><div class="gmail_extra">If you need the local and global orders to match, I think the best thing to do is</div><div class="gmail_extra">create the global section yourself, which should be as easy as creating the section.</div>
<div class="gmail_extra"><br></div><div class="gmail_extra">   Matt</div><div class="gmail_extra"><div><br></div>-- <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
</div></div>