In order to make IPM usable with recent versions of OpenMPI, commit ce13c7f introduced the idea of having the IPM Fortran MPI wrappers call the Fortran PMPI interface directly as opposed to type conversion and calls to the C PMPI interface.
One consequence of this is that even in a pure-C MPI code, one may need to link with the MPI Fortran compiler, lest there be undefined references to the Fortran PMPI routines.
Instead, as pointed out by @ggouaillardet in the comment to 5901492, splitting the IPM C and Fortran intercept libraries such that C-only codes need only link with -lipm, while Fortran codes would use -lipmf -lipm would be a nice alternative.
In order to make IPM usable with recent versions of OpenMPI, commit ce13c7f introduced the idea of having the IPM Fortran MPI wrappers call the Fortran PMPI interface directly as opposed to type conversion and calls to the C PMPI interface.
One consequence of this is that even in a pure-C MPI code, one may need to link with the MPI Fortran compiler, lest there be undefined references to the Fortran PMPI routines.
Instead, as pointed out by @ggouaillardet in the comment to 5901492, splitting the IPM C and Fortran intercept libraries such that C-only codes need only link with
-lipm
, while Fortran codes would use-lipmf -lipm
would be a nice alternative.