Ignore:
Timestamp:
05/19/17 13:16:49 (8 years ago)
Author:
Mathieu Morlighem
Message:

CHG: cosmetics

File:
1 edited

Legend:

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

    r21658 r21723  
    6767pathappend "$ISSM_DIR/scripts"
    6868
    69 #MATLAB_DIR="$ISSM_DIR/externalpackages/matlab/install"
    70 #export MATLAB_DIR
    71 #pathprepend   "$MATLAB_DIR/bin" #take precedence over /usr/local/bin/matlab
    72 #libpathappend "$MATLAB_DIR/lib"
    73 
    7469#GMT
    7570GMT_DIR="$ISSM_DIR/externalpackages/gmt/install"
    76 export GMT_DIR
    77 pathprepend   "$GMT_DIR/bin"
    78 libpathappend "$GMT_DIR/lib"
     71if [ -d "$GMT_DIR" ]; then
     72        export GMT_DIR
     73        pathprepend   "$GMT_DIR/bin"
     74        libpathappend "$GMT_DIR/lib"
     75fi
    7976
    8077#legacy mpich2 (To be removed)
     
    8986if [ -d "$MPI_DIR" ]; then
    9087        export MPI_DIR
     88        export MPI_INC_DIR="$MPI_DIR/include"
    9189        pathprepend   "$MPI_DIR/bin"
    9290        libpathappend "$MPI_DIR/lib"
    9391fi
    94 
    95 export MPI_INC_DIR="$MPI_DIR/include"
    9692
    9793PETSC_DIR="$ISSM_DIR/externalpackages/petsc/install"
Note: See TracChangeset for help on using the changeset viewer.