[petsc-dev] What's the point of D(A/M)GetGlobalVector?

Jed Brown jed at 59A2.org
Fri Aug 27 09:06:39 CDT 2010


On Fri, 27 Aug 2010 10:56:56 -0300, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> On 27 August 2010 10:47, Jed Brown <jed at 59a2.org> wrote:
> >
> >  It also helps (me)
> > to clarify intent: if I see a Get, then I know the vector is temporary
> > without needing to check for a matching Destroy.
> >
> 
> You need a matching Restore()

Right, but I know when I see the Get that there will be a matching
Restore (I don't have to infer from context or looking ahead that the
object isn't handed off in some other way).

Jed



More information about the petsc-dev mailing list