[petsc-users] check for NULL pointer in VecCreateGhost

Jed Brown jedbrown at mcs.anl.gov
Mon Feb 20 17:47:50 CST 2012


On Mon, Feb 20, 2012 at 17:25, Mohammad Mirzadeh <mirzadeh at gmail.com> wrote:

> Hi,
>
> Is there an internal check to see if the 'ghost' pointer in
> VecCreateGhost() is NULL ? This can happen, for example, if the code is run
> in serial and the there are no ghost points (hence n_ghost = 0 and ghost =
> NULL(implementation dependent of course) ). AOXXXXToYYYY functions seem to
> crash if the corresponding pointer is NULL.
>

Always send the whole error message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120220/b3866dd9/attachment.htm>


More information about the petsc-users mailing list