[petsc-dev] GCC8 Fortran length changes from int to size_t

Jed Brown jed at jedbrown.org
Thu May 3 12:21:38 CDT 2018


Lisandro Dalcin <dalcinl at gmail.com> writes:

> On 3 May 2018 at 18:50, Smith, Barry F. <bsmith at mcs.anl.gov> wrote:
>>
>>    Jeff, (and others),
>>
>>      Do you know of a tool that can take a C prototype and automatically generate the Fortran C binding interface definition? We currently generate stubs for C functions that have character arguments manually and it would be great to remove that manual step.
>>
>
> How do you exactly want to implement that? Totally replace these
> special functions with the BIND(C) interface that calls directly the C
> function, or rather generate a native Fortran subroutine that calls
> the C function through a BIND(C) interface?

The latter.  Usage should not change for existing Fortran users.


More information about the petsc-dev mailing list