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

Smith, Barry F. bsmith at mcs.anl.gov
Thu May 3 10:50:02 CDT 2018


   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.

   Thanks

      Barry


> On May 2, 2018, at 11:42 PM, Jeff Hammond <jeff.science at gmail.com> wrote:
> 
> Or you could just use ISO_C_BINDING.  Decent compilers should support it.
> 
> On Wed, May 2, 2018 at 8:56 AM, Jed Brown <jed at jedbrown.org> wrote:
> See Fortran Language Issues.
> 
>   https://gcc.gnu.org/gcc-8/porting_to.html
> 
> We'll have to test for this (probably compiler version) and change the
> PETSC_MIXED_LEN / PETSC_END_LEN to use size_t instead of int.
> 
> 
> 
> -- 
> Jeff Hammond
> jeff.science at gmail.com
> http://jeffhammond.github.io/



More information about the petsc-dev mailing list