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

Jed Brown jed at jedbrown.org
Sun May 6 19:11:05 CDT 2018


Lisandro Dalcin <dalcinl at gmail.com> writes:

>> > 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.
>
> Things may end up being involved anyway, even if using ISO_C_BINDINGS.
>
> http://fortranwiki.org/fortran/show/Generating+C+Interfaces#strings

I guess I don't understand.  Are you concerned about the string copying?
Note that FIXCHAR (used in current interfaces) allocates memory.


More information about the petsc-dev mailing list