title: How to compile MPI with gfortran instead of ifort?
body: <p>A similar <a href="https://stackoverflow.com/questions/11312719/how-to-compile-mpi-with-gcc/11329457">question</a> has been asked before but the answers don't directly address the problem I have. I am trying to compile a fortran based application on an HPC machine. The machine has both <code>gfortan</code> and <code>ifort</code> installed and in path. When I use the MPI (Open MPI 1.8.8) wrapper <code>mpifort</code> it automatically uses <code>ifort</code> which is fine. But I, for some reason, want to use <code>gfortran</code> instead. How can I make sure that the <code>mpifort</code>wrapper defaults to <code>gfortran</code>instead of <code>ifort</code>?</p>