[petsc-dev] PetscSF in Fortran

Adrian Croucher a.croucher at auckland.ac.nz
Sun Oct 15 17:54:11 CDT 2017


hi


On 14/10/17 00:47, Matthew Knepley wrote:
>
> If you want the wrapper to take in F90 pointer arguments, then you 
> have to declare it or you get an SEGV. These
> get autogenerated in include/petsc/finclude/ftn-auto/*.h90 when you 
> run 'make allfortranstubs'. Did this happen
> for your function?

I just tried running make allfortranstubs, but I don't see anything new 
in include/petsc/finclude/ftn-auto/*.h90, and my test program still crashes.

I also tried doing a make clean and make allfortranstubs all, but that 
didn't help.

I even tried deleting my $PETSC_ARCH directory and rebuilding everything 
(including make allfortranstubs) but again it didn't help.

I'm a bit surprised that custom Fortran bindings should produce anything 
in include/petsc/finclude/ftn-auto/, I thought that would only be for 
the auto-generated stuff that comes out of bfort?

- 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171016/28a8e083/attachment.html>


More information about the petsc-dev mailing list