Hi Dave, .mod files are compiler dependent, so if a library is built with say gfortran, you will get a compiler error in code compiled with a different compiler if you use a "use" statement
However, you may still be able to specify a different compiler on OpenMPI with the OPMI_FC if you use the F77 mode "include mpif.h" instead of the F90 mode "use mpi" and compile, build, and run without errors. kindest regards Mike On 04/03/2016, at 1:42 PM, Christopher Samuel wrote: > Hi Gilles, > > On 04/03/16 13:33, Gilles Gouaillardet wrote: > >> there is clearly no hope when you use mpi.mod and mpi_f08.mod >> my point was, it is not even possible to expect "legacy" mpif.h work >> with different compilers. > > Sorry, my knowledge of FORTRAN is limited to trying to debug why their > code wouldn't compile. :-) > > Apologies for the noise. > > All the best, > Chris > -- > Christopher Samuel Senior Systems Administrator > VLSCI - Victorian Life Sciences Computation Initiative > Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545 > http://www.vlsci.org.au/ http://twitter.com/vlsci > > _______________________________________________ > devel mailing list > de...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/devel > Link to this post: > http://www.open-mpi.org/community/lists/devel/2016/03/18679.php