Changeset 3785


Ignore:
Timestamp:
Nov 17, 2020, 12:09:25 PM (3 years ago)
Author:
Ehouarn Millour
Message:

Update du script install_lmdz.sh pour plus proprement faire la recherche de la librairie MPI.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r3783 r3785  
    271271            o_ins_make="-t g95" ;;
    272272           
    273    *)       if [ $parallel = none -o -f /usr/bin/mpif90 ] ; then
     273   *)       if [ $parallel = none -o ] ; then
    274274                path_mpi=`which mpif90 | sed -e s:/mpif90::` ;
    275275                if [ -d /usr/lib64/openmpi ] ; then
     
    278278                  root_mpi="/usr"
    279279                fi
    280             # For Scientifique Linux with gfortran at LMD :
    281             elif [ -f /usr/lib64/openmpi/1.4.5-gfortran/bin/mpif90 -a $compiler = "gfortran" ] ; then
    282                 path_mpi=/usr/lib64/openmpi/1.4.5-gfortran/bin ;
    283                 root_mpi=/usr/lib64/openmpi/1.4.5-gfortran ;
    284                 export LD_LIBRARY_PATH=${root_mpi}/lib:$LD_LIBRARY_PATH
    285             # For Scientifique Linux with ifort at LMD :
    286             elif [ -f /usr/lib64/openmpi/1.4.5-ifort/bin/mpif90 -a $compiler = "ifort" ] ; then
    287                 path_mpi=/usr/lib64/openmpi/1.4.5-ifort/bin ;
    288                 root_mpi=/usr/lib64/openmpi/1.4.5-ifort ;
    289                 export LD_LIBRARY_PATH=${root_mpi}/lib:$LD_LIBRARY_PATH
    290             # For Scientifique Linux with pgf90 at LMD :
    291             elif [ -f /usr/lib64/openmpi/1.4.5-ifort/bin/mpif90 -a $compiler = "pgf90" ] ; then
    292                 path_mpi=/usr/lib64/openmpi/1.4.5-pgf/bin ;
    293                 root_mpi=/usr/lib64/openmpi/1.4.5-pgf ;
    294                 export LD_LIBRARY_PATH=${root_mpi}/lib:$LD_LIBRARY_PATH
     280                # Ehouarn: but why do we need path_mpi and root_mpi
     281                # if not in parallel ?
    295282            else
    296                echo "Cannot find mpif90" ;
    297                if [ $parallel = none ] ; then exit ; fi ;
     283               path_mpi=`which mpif90 | sed -e s:/mpif90::` ;
     284               root_mpi=`which mpif90 | sed -e s:/bin/mpif90::` ;
     285               if [ ! -x ${path_mpi}/mpif90 ] ; then
     286                 echo "Error: cannot find mpif90" ;
     287                 exit ;
     288               fi ;
     289               export LD_LIBRARY_PATH=${root_mpi}/lib:$LD_LIBRARY_PATH
    298290            fi ;
    299291            par_comp=${path_mpi}/mpif90 ;
Note: See TracChangeset for help on using the changeset viewer.