[petsc-users] check for NULL pointer in VecCreateGhost

Mohammad Mirzadeh mirzadeh at gmail.com
Mon Feb 20 17:25:53 CST 2012


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.

Thanks,
Mohammad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120220/4d110f61/attachment.htm>


More information about the petsc-users mailing list