[petsc-users] Question about MatDestroy...

Matthew Knepley knepley at gmail.com
Wed Apr 25 19:22:24 CDT 2012


On Wed, Apr 25, 2012 at 7:06 PM, Kyungjoo Kim <iamkyungjoo at gmail.com> wrote:

> Hello,
>
> Lately I experienced very weird behavior in PETSC.
>
> While solving small size problem (25k) on my laptop, it MatDestroy clean
> the objects.
> Another test (40k unknowns) problem use most of my memory and left around
> 500 MB free while solving the problem.
>
> Then when I call MatDestroy, PETSC request more memory and the available
> memory goes down 8MB (It start scratching my hdd, so I stopped).
>
> Why MatDestroy need more memory than solving phase ?
>

This is a misinterpretation. MatDestroy() does not allocate memory.

  Thanks,

     Matt


> Any idea ?
>
>
> Thank you in advance.




-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120425/c16879d5/attachment-0001.htm>


More information about the petsc-users mailing list