On Fri, Jun 9, 2023 at 12:04 PM neil liu <liufi...@gmail.com> wrote:
> Dear Petsc developers, > > I am using valgrind to check the memory leak. It shows, > [image: 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 ? > This is a knock-on leak related to the first one. You will also see the original leak. Since it is inside DM, it will come from DMGetWorkArray(). THanks, Matt > Thanks, > > Xiaodong > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>