<div dir="ltr">On Thu, Feb 21, 2013 at 2:07 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote"><div class="im">On Thu, Feb 21, 2013 at 1:05 PM, Peter Brune <span dir="ltr"><<a href="mailto:prbrune@gmail.com" target="_blank">prbrune@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><div><br></div></div><div>The Set is the issue at hand;</div></blockquote><div><br></div></div><div>I think he needs scatters, not ISLocalToGlobalMappings, as mentioned in my other email.</div>
</div></div></div></blockquote><div><br></div><div style>Yes, he needs the local to global scatters. Rich, I think the easiest way to do this now may be</div><div style>to define your data layout as a PetscSection (these are all local) using DMSetDefaultSection(),</div>
<div style>and record who owns which point using a PetscSF with DMSetPointSF().</div><div style><br></div><div style>Using this information, the DM will automatically construct a scatter between local and global,</div><div style>
and the CreateLocal/GlobalVector() functions will also work right. This is what its is designed for.</div><div style><br></div><div style>Does this make sense?</div><div style><br></div><div style> Matt</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><span style="color:rgb(80,0,80)"> </span></div><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div> and it probably belongs in DMShell as a Set/SetCreate pair like everything else in DMShell.</div>
</blockquote></div></div><br></div><div class="gmail_extra">Yes<br></div></div>
</blockquote></div><br><br clear="all"><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>