-# Note for the future - use finde package to get MPI
-find_package(MPI)
-
-#if(MPI_LIBRARY)
-
-#MPI_INCLUDE_PATH
-
-
-if(MPIF_LOCAL_DIR)
- find_library(MPIF_LIBRARY NAMES libmpich.a NO_DEFAULT_PATH PATHS ${MPIF_LOCAL_DIR}/lib)
- find_path( MPIF_INCLUDE_DIRECTORIES NAMES mpif.h NO_DEFAULT_PATH PATHS ${MPIF_LOCAL_DIR}/include )
-else(MPIF_LOCAL_DIR)
- find_library(MPIF_LIBRARY NAMES mpi mpich PATHS
- ${MPI_LIBRARY}
- ${MPI_EXTRA_LIBRARY}
- /users/local/mpi64/mpich-1.2.7p1/lib
- /usr/lib
- /usr/local/lib
- /usr/local/mpi/lib
- )
- find_path( MPIF_INCLUDE_DIRECTORIES NAMES mpif.h PATHS
- ${MPI_INCLUDE_PATH}
- /users/local/mpi64/mpich-1.2.7p1/include
- /usr/include
- /usr/local/include
- /usr/include/mpi
- /usr/local/mpi/include
- )
-endif(MPIF_LOCAL_DIR)
-
-set( MPIF_LIBRARIES ${MPIF_LIBRARY})
-
-if ( MPIF_INCLUDE_DIRECTORIES )
- set( MPIF_FOUND TRUE )