Changeset 24634


Ignore:
Timestamp:
03/04/20 09:05:00 (5 years ago)
Author:
Mathieu Morlighem
Message:

CHG: fixing environment.sh if MPI is installed through PETSc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/etc/environment.sh

    r24632 r24634  
    186186MPI_DIR="${ISSM_DIR}/externalpackages/mpich/install"
    187187if [ -d "$MPI_DIR" ]; then
     188        echo "HERE"
    188189        export MPI_DIR
    189190        export MPI_INC_DIR="$MPI_DIR/include"
     
    198199        path_prepend "${PETSC_DIR}/bin" # In case we have installed MPICH via PETSc
    199200        ld_library_path_append "${PETSC_DIR}/lib"
     201        if [ -f "$PETSC_DIR/bin/mpiexec" ]; then
     202                MPI_DIR=$PETSC_DIR
     203                export MPI_DIR
     204                export MPI_INC_DIR="$MPI_DIR/include"
     205        fi
    200206fi
    201207
Note: See TracChangeset for help on using the changeset viewer.