1 Dec
2015
1 Dec
'15
12:08 p.m.
On 1 Dec 2015, at 12:05, Justin Chang <jychang48@gmail.com> wrote:
Okay, so mpif90-wrapper-data.txt is located in
/usr/local/Cellar/open-mpi/1.10.1/share/openmpi/mpif90-wrapper-data.txt
and in the row that says "compiler=", the RHS is blank. Simply adding gfortran-5 now gives:
mpif90 --show gfortran-5 -I/usr/local/Cellar/open-mpi/1.10.1/include -L/usr/local/opt/libevent/lib -L/usr/local/Cellar/open-mpi/1.10.1/lib -lmpi_mpifh -lmpi
so this is definitely the much better alternative
A better way to do this is to set the environment variable OMPI_FC to the name of the fortran compiler you want mpif90 to use. Lawrence