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

Jed Brown jed at 59A2.org
Fri Aug 27 08:24:27 CDT 2010


On Fri, 27 Aug 2010 16:13:14 +0300, Aron Ahmadia <aron.ahmadia at kaust.edu.sa> wrote:
> Not to mention the various Get routines that are actually used to create
> things, such as DAGetMatrix.

I think that should have been named DACreateMatrix().  Other XGetY() are
just accessors which create a managed object if needed.  When there is a
Get/Restore pair, it implies that the access to that managed resource
has some sort of exclusivity.  I think
{Get,Restore}{Local,Global}Vector() are actually the only functions with
that naming scheme that really manage a pool.

Jed



More information about the petsc-dev mailing list