Hello petsc friends,

I have a (silly?) question about matDestroy in Fortran, cause I am not sure
I have got 100% clear what it is doing.

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?

If the answer is yes, how can I force petsc to return all the memory used
for A to the system?

I found this post:
https://lists.mcs.anl.gov/pipermail/petsc-users/2013-August/018466.html,
but cannot use that trick as I am not in C here.

Thanks for the help as always!

Reply via email to