mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Merge pull request #468 from smharper/run_test_mpi_check
Add mpif90 support in run_tests.py
This commit is contained in:
commit
ac170d9c91
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue