[petsc-dev] [fortran] DAVecGetArrayF90 error
Barry Smith
bsmith at mcs.anl.gov
Thu Sep 2 11:34:36 CDT 2010
On Sep 2, 2010, at 10:49 AM, Jed Brown wrote:
> On Thu, 2 Sep 2010 17:37:04 +0200, Leo van Kampenhout <lvankampenhout at gmail.com> wrote:
>> Hi all,
>>
>> since a few days I'm getting these errors during runtime (did not have it
>> before! )
>>
>> [0]PETSC ERROR: src/dm/da/src/f90-custom/zda1f90.c:109:
>> __FUNCT__="VecRestoreArrayPrivate3" does not agree with
>> __func__="davecgetarrayf903_"
>> [0]PETSC ERROR: src/dm/da/src/f90-custom/zda1f90.c:109:
>> __FUNCT__="VecRestoreArrayPrivate3" does not agree with
>> __func__="davecgetarrayf903_"
>
> Thanks for pointing this out.
>
We should just be consistent. If they use part of the constructs they should use them all. Note you cannot use PetscFunctionReturn(0) for these I guess you can use PetscFunctionReturnVoid()
Ok who will fix these?
Barry
>
> Barry/Satish, should ftn-custom functions use PetscFunctionBegin/Return
> or not? Most of them don't, but there are a few. In this particular
> file, there aren't even any PetscFunctionReturns, and there are no
> __FUNCT__ definitions in the -custom files that do have matching
> Begin/Returns.
>
> Jed
More information about the petsc-dev
mailing list