9 Jun
2023
9 Jun
'23
11:38 a.m.
This are MPI objects PETSc creates in PetscInitialize(), for successful runs they should all be removed in PETSc finalize, hence they should not appear as valgrind links. Are you sure PetscFinalize() is called and completes? We'll need the exact PETSc version you are using to know exactly which MPI object is not being destroyed. Barry
On Jun 9, 2023, at 12:01 PM, neil liu <[email protected]> wrote:
Dear Petsc developers,
I am using valgrind to check the memory leak. It shows, <image.png> Finally, I found that DMPlexrestoretrasitiveclosure can resolve this memory leak.
My question is from the above screen shot, it seems the leak is related to MPI. How can I relate that reminder to DMPlexrestoretrasitiveclosure ?
Thanks,
Xiaodong