mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Fixed regex in CMakeLists.txt so that MPI detection works.
This commit is contained in:
parent
35ced559ff
commit
049b894bb6
2 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ option(optimize "Turn on all compiler optimization flags" OFF)
|
|||
# MPI for distributed-memory parallelism
|
||||
#===============================================================================
|
||||
|
||||
if($ENV{FC} MATCHES "mpi*")
|
||||
if($ENV{FC} MATCHES "mpi.*")
|
||||
find_package(MPI REQUIRED)
|
||||
add_definitions(-DMPI)
|
||||
include_directories(BEFORE "${MPI_Fortran_INCLUDE_PATH}")
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ module output_interface
|
|||
|
||||
#ifdef HDF5
|
||||
use hdf5_interface
|
||||
#elif MPI
|
||||
#endif
|
||||
#ifdef MPI
|
||||
use mpiio_interface
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue