Changeset 24635


Ignore:
Timestamp:
03/04/20 09:11:43 (5 years ago)
Author:
jdquinn
Message:

CHG: Clean up

File:
1 edited

Legend:

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

    r24634 r24635  
    185185
    186186MPI_DIR="${ISSM_DIR}/externalpackages/mpich/install"
    187 if [ -d "$MPI_DIR" ]; then
    188         echo "HERE"
     187if [ -d "${MPI_DIR}" ]; then
    189188        export MPI_DIR
    190189        export MPI_INC_DIR="$MPI_DIR/include"
     
    197196if [ -d "$PETSC_DIR" ]; then
    198197        export PETSC_DIR
    199         path_prepend "${PETSC_DIR}/bin" # In case we have installed MPICH via PETSc
    200198        ld_library_path_append "${PETSC_DIR}/lib"
    201         if [ -f "$PETSC_DIR/bin/mpiexec" ]; then
    202                 MPI_DIR=$PETSC_DIR
     199
     200        # In case we have installed MPICH via PETSc
     201        if [ -f "${PETSC_DIR}/bin/mpiexec" ]; then
     202                MPI_DIR=${PETSC_DIR}
    203203                export MPI_DIR
    204                 export MPI_INC_DIR="$MPI_DIR/include"
     204                export MPI_INC_DIR="${MPI_DIR}/include"
     205                path_prepend "${MPI_DIR}/bin"
     206                cpath_prepend "${MPI_DIR}/include"
    205207        fi
    206208fi
Note: See TracChangeset for help on using the changeset viewer.