<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Matt,<div class=""><br class=""></div><div class="">I knew you can pass NULL for a contiguous array but I didn’t suspect that you can get NULL from PetscSFGetGraph.</div><div class=""><br class=""></div><div class="">Thank you for your time,</div><div class="">Ata<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 8, 2015, at 6:05 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com" class="">knepley@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote">On Wed, Apr 8, 2015 at 5:47 PM, Ataollah Mesgarnejad <span dir="ltr" class=""><<a href="mailto:amesga1@tigers.lsu.edu" target="_blank" class="">amesga1@tigers.lsu.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Dear all,<div class=""><br class=""></div><div class="">I get a weird segmentation fault when I try to access the arrays of PetscInt and PetscSFNode from are the graph of the pointSF that DMPlexDistribute returns. I'm attaching a small test that can show the problem. You can run with:</div></div></blockquote><div class=""><br class=""></div><div class="">The leaves can be NULL if it is a contiguous array covering all indices. You can see that the Plex code checks for this.</div><div class=""><br class=""></div><div class=""> Thanks,</div><div class=""><br class=""></div><div class=""> Matt</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="">testPointSF -i TwoTri.gen<br clear="all" class=""><div class=""><br class=""></div>As always thank you for your help,
</div><div class="">Ata</div></div>
</blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div>-- <br class=""><div class="gmail_signature">What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br class="">-- Norbert Wiener</div>
</div></div>
</div></blockquote></div><br class=""></div></body></html>