From b4a92883f246d0588f9b08fa443108ee8745dc2b Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sun, 4 Oct 2015 10:32:15 +0700 Subject: [PATCH] Allow run_tests.py to work even without MPI installed --- tests/run_tests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/run_tests.py b/tests/run_tests.py index 70ea4c3dc9..338732c142 100755 --- a/tests/run_tests.py +++ b/tests/run_tests.py @@ -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