Fixed regex in CMakeLists.txt so that MPI detection works.

This commit is contained in:
Paul Romano 2013-11-29 13:43:48 -05:00
parent 35ced559ff
commit 049b894bb6
2 changed files with 3 additions and 2 deletions

View file

@ -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}")

View file

@ -7,7 +7,8 @@ module output_interface
#ifdef HDF5
use hdf5_interface
#elif MPI
#endif
#ifdef MPI
use mpiio_interface
#endif