<div dir="ltr"><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Hello petsc friends,</div><div><br></div><div>I have a (silly?) question about matDestroy in Fortran, cause I am not sure I have got 100% clear what it is doing. </div><div><br></div><div>I am asking this question because I have the feeling that matDestroy(A, ierr) is not returning the memory to the system, but it prevents from memory leaks. Is that right? </div><div><br></div><div>If the answer is yes, how can I force petsc to return all the memory used for A to the system? </div><div><br></div><div>I found this post: <a href="https://lists.mcs.anl.gov/pipermail/petsc-users/2013-August/018466.html">https://lists.mcs.anl.gov/pipermail/petsc-users/2013-August/018466.html</a>, but cannot use that trick as I am not in C here. <br></div><div><br></div><div>Thanks for the help as always! </div><div><br></div><div><br></div></div></div></div></div>