[petsc-dev] Segfault in DMPlexVecGetClosure

Blaise A Bourdin bourdin at lsu.edu
Tue Oct 31 10:36:51 CDT 2017


Hi,

I am losing my mind over segfaults in DMPlexVecGetClosure.

In the example below, I get a segfault whenever cval is not set to NULL before calling DMPlexVecGetClosure. Is this expected? The documentations says nothing about this
Also, after calling DMPlexVecRestoreClosure, the values of cval are discarded and neither global nor coord are changed.

I am obviously doing something wrong but cannot figure it out...

Blaise


--
Department of Mathematics and Center for Computation & Technology
Louisiana State University, Baton Rouge, LA 70803, USA
Tel. +1 (225) 578 1612, Fax  +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171031/357691b6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: EXOTest7.c
Type: application/octet-stream
Size: 4487 bytes
Desc: EXOTest7.c
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171031/357691b6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out2.gen
Type: application/octet-stream
Size: 14052 bytes
Desc: out2.gen
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171031/357691b6/attachment-0001.obj>


More information about the petsc-dev mailing list