[petsc-users] Cannot convert error

Jed Brown jedbrown at mcs.anl.gov
Mon Sep 17 14:49:26 CDT 2012


On Mon, Sep 17, 2012 at 2:45 PM, Eduardo <erocha.ssa at gmail.com> wrote:

> Does anyone know the reason for the following errors:
>
> error: cannot convert ‘_p_KSP**’ to ‘KSP {aka _p_KSP*}’ for argument
> ‘1’ to ‘PetscErrorCode KSPDestroy(KSP)’
>

Sounds like you are updating some old code. The destroy methods were
changed to take a reference a couple releases ago. Use KSPDestroy(&ksp) and
VecScatterDestroy(&scatter).


> error: cannot convert ‘_p_VecScatter**’ to ‘VecScatter {aka
> _p_VecScatter*}’ for argument ‘1’ to ‘PetscErrorCode
> VecScatterDestroy(VecScatter)’
>
> Thanks in advance,
> Eduardo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120917/a21144b6/attachment.html>


More information about the petsc-users mailing list