Merge pull request #468 from smharper/run_test_mpi_check

Add mpif90 support in run_tests.py
This commit is contained in:
Paul Romano 2015-10-03 17:33:09 +07:00
commit ac170d9c91

View file

@ -126,7 +126,12 @@ class Test(object):
# Check for MPI
if self.mpi:
self.fc = os.path.join(MPI_DIR, 'bin', 'mpifort')
if os.path.exists(os.path.join(MPI_DIR, 'bin', 'mpifort')):
self.fc = os.path.join(MPI_DIR, 'bin', 'mpifort')
elif os.path.exists(os.path.join(MPI_DIR, 'bin', 'mpif90')):
self.fc = os.path.join(MPI_DIR, 'bin', 'mpif90')
else:
raise RuntimeError('Cannot find an MPI Fortran compiler')
else:
self.fc = FC