JuliaParallel / MPI.jl

MPI wrappers for Julia
https://juliaparallel.org/MPI.jl/
The Unlicense
375 stars 121 forks source link

expose Fortran conversions #784

Open simonbyrne opened 11 months ago

simonbyrne commented 11 months ago

It would be helpful to expose an interface to convert Fortran handles (i.e. integers) to Julia ones, and vice-versa.

giordano commented 10 months ago

What's a concrete example of what you'd like to do?

simonbyrne commented 10 months ago

I'm reviewing a paper (https://github.com/JuliaCon/proceedings-review/issues/134) where they call Julia from Fortran. See section 3.4 of https://raw.githubusercontent.com/JuliaCon/proceedings-papers/jcon.00134/jcon.00134/10.21105.jcon.00134.pdf

simonbyrne commented 10 months ago

One of the challenges is that if a user converts c2f -> f2c, they may end up with a different Julia object corresponding to the MPI handle.

I think the way to do this: