Thanks Matt, I knew you can pass NULL for a contiguous array but I didn’t suspect that you can get NULL from PetscSFGetGraph.
Thank you for your time, Ata > On Apr 8, 2015, at 6:05 PM, Matthew Knepley <[email protected]> wrote: > > On Wed, Apr 8, 2015 at 5:47 PM, Ataollah Mesgarnejad <[email protected] > <mailto:[email protected]>> wrote: > Dear all, > > 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: > > The leaves can be NULL if it is a contiguous array covering all indices. You > can see that the Plex code checks for this. > > Thanks, > > Matt > > testPointSF -i TwoTri.gen > > As always thank you for your help, > Ata > > > > -- > What most experimenters take for granted before they begin their experiments > is infinitely more interesting than any results to which their experiments > lead. > -- Norbert Wiener
