[petsc-users] check if object was created

Jed Brown jedbrown at mcs.anl.gov
Sun Oct 2 14:03:28 CDT 2011


On Sun, Oct 2, 2011 at 14:01, Dominik Szczerba <dominik at itis.ethz.ch> wrote:

> One little clarification:
>
> > Vec vec = 0;
> > VecCreate(..., &vec);
> > VecDestroy(&vec);
>
> This causes a compilation error for (only) VecDestroy, the only way to
> avoid is to say:
>
> VecDestroy(vec);
>

Please upgrade to petsc-3.2.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111002/922d7226/attachment.htm>


More information about the petsc-users mailing list