[petsc-users] Seg fault when trying to access the graph of pointSF from DMPlexDistribute

Ataollah Mesgarnejad amesga1 at tigers.lsu.edu
Wed Apr 8 20:22:09 CDT 2015


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 <knepley at gmail.com> wrote:
> 
> On Wed, Apr 8, 2015 at 5:47 PM, Ataollah Mesgarnejad <amesga1 at tigers.lsu.edu <mailto:amesga1 at tigers.lsu.edu>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150408/c32eb6cf/attachment.html>


More information about the petsc-users mailing list