[petsc-users] Cannot convert error
Eduardo
erocha.ssa at gmail.com
Wed Sep 19 06:25:02 CDT 2012
Is there a macro I can get the Petsc release? I'd like to link my code
with libraries that are using a old version of Petsc. However, in the
future these libraries may change to a newer version. So I want to
write my code with ifdefs so that I can change from one version to the
other easily.
Thanks in advance,
Eduardo
On Mon, Sep 17, 2012 at 4:49 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> 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
>
>
More information about the petsc-users
mailing list