[petsc-users] PETSC Memory leakage

Jed Brown jedbrown at mcs.anl.gov
Thu Apr 18 12:55:59 CDT 2013


Foad Hassaninejadfarahani <umhassa5 at cc.umanitoba.ca> writes:

> Dear Jed;
>
>  
>
> Hi;
>
>  
>
> I am PhD student at the University of Manitoba working on a CFD code.
>
> I tried to use PETSC direct solver (SUPER LU) to solve the system of
> equations.
>
> After a long time effort, the code is working properly and gives some good
> results. The only issue that came up recently is a bout memory leakage.
>
> I found that after iterations RES memory is increasing which leads to the
> server crash.

Run a short simulation (like two steps) with the option -malloc_dump (or
better, '-objects_dump' in petsc-dev).  It will show the memory leaks.

> I tried bunch of cures which I found on the web, but none of them worked.
>
> I am using MatDestroy and VecDestroy at the end of PETSC part in the code to
> free all the allocated memories. This is not helpful.
>
> I also tried iterative solvers like Richardson and other direct solver like
> spooles and the same problem occurred.
>
> I would appreciate if you could help me in this regard.
>
>  
>
> With Best Regards;
>
> Foad
>
>  


More information about the petsc-users mailing list