Merge pull request #473 from paulromano/tests-mpif90

Allow run_tests.py to work without MPI installed
This commit is contained in:
Sterling Harper 2015-10-03 23:56:48 -04:00
commit ef2d2bf071

View file

@ -128,10 +128,8 @@ class Test(object):
if self.mpi:
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')
self.fc = os.path.join(MPI_DIR, 'bin', 'mpif90')
else:
self.fc = FC