[petsc-dev] [FORGED] Re: [FORGED] Re: PetscSF in Fortran

Adrian Croucher a.croucher at auckland.ac.nz
Mon Oct 23 19:55:53 CDT 2017


hi Barry,


On 24/10/17 12:46, Barry Smith wrote:
>
>> I checked out your new branch but it is giving a bunch of warnings and errors when I try to make it.
>>
>     These warnings should be gone in the latest version of the branch. Do a git pull on that branch.

I did that (I'm on commit 8af6ec1), but am still getting the warnings 
about -Wpointer-to-int-cast in f90_cwrap.c. I had noticed while 
debugging my own interface code that casting MPI_Datatype to int causes 
the compiler to complain. (This is on gcc 4.9.2.)

The other errors did go away when I did make allfortranstubs.

>      You shouldn't need to make any of these stubs. They can be automatically generated. I turned on the automatic generation for them if
> you do
>
> make allfortranstubs
>
> I think you should throw away the stubs you wrote.

The stub for PetscSFSetGraph() is getting automatically generated (I can 
see it in /vec/f90-mod/ftn-auto-interfaces/petscpetscsf.h90), but the 
one for PetscSFGetGraph() is missing for some reason. Any clues?

- Adrian

-- 
Dr Adrian Croucher
Senior Research Fellow
Department of Engineering Science
University of Auckland, New Zealand
email: a.croucher at auckland.ac.nz
tel: +64 (0)9 923 4611



More information about the petsc-dev mailing list