<p>Your faithfully:</p><p>    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,.</p><p>     However, if I use PetscFree(array), there are no errors? could do you please tell me why? </p><p>your sincerely</p><p>LV CHAO</p><p>2014/3/13<br><br><br></p><span></span><br><br><br>