[petsc-users] malloc

吕超 luchao at mail.iggcas.ac.cn
Thu Mar 13 09:09:13 CDT 2014


Your faithfully:

    I use malloc to allocate memories to 1d or 2d array,  if I use function free(array), error "Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range" always appear,.

     However, if I use PetscFree(array), there are no errors? could do you please tell me why? 

your sincerely

LV CHAO

2014/3/13





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


More information about the petsc-users mailing list