[petsc-users] memory increase in a transient calculation but no valgrind errors

Jed Brown jedbrown at mcs.anl.gov
Sat Dec 24 14:13:28 CST 2011


On Sat, Dec 24, 2011 at 14:10, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> I do not understand: is there something in Petsc of this sort that I
> could use for my unstructured meshes or you meant I have to implement
> it myself?
>

If you implement DM to the extent of providing DMCreateGlobalVector(), then
DMGetGlobalVector()/DMRestoreGlobalVector() will work for you. Otherwise
you implement it yourself. This kind of caching is a very common pattern
for data structure reuse.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111224/1dbba6b6/attachment.htm>


More information about the petsc-users mailing list