Changeset 3645


Ignore:
Timestamp:
Mar 11, 2020, 3:48:16 PM (5 years ago)
Author:
Laurent Fairhead
Message:

Cleaning up jean-zay options
Deleting ada options
Preparing the use of arch.env file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r3610 r3645  
    100100with_xios="n"
    101101opt_makelmdz_xios=""
     102
    102103## compile_with_fcm=1 : use makelmdz_fcm (1) or makelmdz (0)
    103104compile_with_fcm=1
     
    113114fi
    114115#echo "pcmac="$pcmac
     116
     117env_file=""
    115118
    116119#########################################################################
     
    167170
    168171    -opt_makelmdz     to call makelmdz or makelmdz_fcm with additional options
     172
     173    -env_file  specify an arch.env file to overwrite the existing one
    169174........fin
    170175     exit ;;
     
    194199     "-netcdf") netcdf=$2 ; shift ; shift ;;
    195200     "-xios") with_xios="y" ; shift ;;
     201     "-env_file") env_file=$2 ; shift ; shift ;;
     202
    196203     *) ./install_lmdz.sh -h ; exit
    197204   esac
     
    217224
    218225case ${hostname:0:5} in
    219 
    220    ada33)   compiler="ifort" ;
    221             par_comp="ifort" ;
    222             o_ins_make="-t ada" ;
    223             make=gmake ;
    224             module load intel/2017.2 ;
    225             arch=X64_ADA ;;
    226226
    227227   jean-)   compiler="mpiifort" ;
     
    231231            module purge
    232232            module load intel-compilers/19.0.4 ;
    233             module load intel-mpi/19.0.4 ;
    234             module load hdf5/1.10.5/intel-19.0.4-mpi ;
    235             module load netcdf/4.7.0/intel-19.0.4-mpi ;
    236             module load netcdf-fortran/4.4.5/intel-19.0.4-mpi ;
    237             module load subversion/1.9.7/gcc-4.8.5 ;
    238             module load intel-mkl/19.0.4 ;
     233            #module load intel-mpi/19.0.4 ;
     234            #module load intel-mkl/19.0.4 ;
     235            module load hdf5/1.10.5-mpi ;
     236            module load netcdf/4.7.2-mpi ;
     237            module load netcdf-fortran/4.5.2-mpi ;
     238            module load subversion/1.9.7 ;
    239239            export NETCDF_LIBDIR=./
    240240            export NETCDFFORTRAN_INCDIR=./
     
    452452# If installing on know machines such as IBM x3750 (Ada)
    453453# at IDRIS, don't check for available software and don"t install netcdf
    454 if [ ${hostname:0:5} = ada33 ] ; then
    455   netcdf=0 # no need to recompile netcdf, alreday available
    456   check_linux=0
    457   pclinux=0
    458   ioipsl=1 # no need to recompile ioipsl, already available
    459   #netcdf="/smplocal/pub/NetCDF/4.1.3"
    460   compiler="ifort"
    461   fmod='module '
    462   if [ $real = r8 ] ; then OPTPREC="$OPTPREC -real-size 64 -DNC_DOUBLE" ; fi
    463   OPTIM="-O2 -fp-model strict -ip -axAVX,SSE4.2 -align all "
    464   OPTIMGCM="$OPTIM $OPTPREC"
    465 fi
    466454if [ ${hostname:0:5} = jean- ] ; then
    467455  netcdf=0 # no need to recompile netcdf, alreday available
     
    637625  else # bash
    638626    sed -e s:/bin/ksh:/bin/bash:g ins_make > ins_make.bash
    639     if [ "`grep ada AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
    640         \cp -f ~rdzt401/bin/AA_make.gdef .
    641     fi
     627    #if [ "`grep ada AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
     628    #    \cp -f ~rdzt401/bin/AA_make.gdef .
     629    #fi
    642630    if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
    643631        echo 'Warning jean-zay not in AA_make.gdef'
     
    687675
    688676else # of if [ $ioipsl = 1 ]
    689   if [ ${hostname:0:5} = ada33 ] ; then
    690     cd $MODEL/modipsl
    691     cd util
    692 
    693     cp AA_make.gdef AA_make.orig
    694     sed -e 's/^\#.*.g95.*.\#.*.$/\#/' AA_make.gdef > tmp
    695     sed -e "s:F_L = g95:F_L = $compiler:" -e "s:F_C = g95 -c:F_C = $compiler -c": \
    696     -e 's/g95.*.w_w.*.(F_D)/g95      w_w = '"$OPTIMGCM"'/' \
    697     -e 's:g95.*.NCDF_INC.*.$:g95      NCDF_INC= -I/smplocal/pub/HDF5/1.8.9/seq/include -I/smplocal/pub/NetCDF/4.1.3/include:' \
    698     -e 's:g95.*.NCDF_LIB.*.$:g95      NCDF_LIB= -L/smplocal/pub/NetCDF/4.1.3/lib -lnetcdff -lnetcdf:' \
    699     -e "s:-fmod=:-$fmod:" -e 's/-fno-second-underscore//' \
    700     -e 's:#-Q- g95      M_K = gmake:#-Q- g95      M_K = make:' \
    701     tmp >| AA_make.gdef
    702 
    703     ./ins_make $o_ins_make # We use lines for g95 even for the other compilers
    704 
    705     # on Ada, IOIPSL is already installed in ~rpsl035/IOIPSL_PLUS
    706     # so link it to current settings
    707     cd $MODEL/modipsl/modeles/
    708     \rm -r -f IOIPSL
    709     ln -s ~rpsl035/IOIPSL_PLUS IOIPSL
    710     cd ..
    711     ln -s ~rpsl035/IOIPSL_PLUS/modipsl_Tagv2_2_3/bin/* bin/
    712     ln -s ~rpsl035/IOIPSL_PLUS/modipsl_Tagv2_2_3/lib/* lib/
    713   elif [ ${hostname:0:5} = jean- ] ; then
     677  if [ ${hostname:0:5} = jean- ] ; then
    714678     cd $MODEL/modipsl
    715679     cd util
    716        if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar
     680       if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then
    717681        echo 'Warning jean-zay not in AA_make.gdef'
    718682        echo 'Think about updating'
     
    726690       gmake > ioipsl.log
    727691   
    728   fi # of if  [${hostname:0:5} = ada33 ]
     692  fi
    729693  echo install.sh ioipsl_OK `date`
    730694fi # of if [ $ioipsl = 1 ]
     
    744708  myget import/install_xios.bash
    745709  chmod u=rwx install_xios.bash
    746   if [ ${hostname:0:5} = ada33 ] ; then
    747     ./install_xios.bash \
    748     -prefix /workgpfs/rech/gzi/rgzi027/LMDZ20180221.trunk/modipsl/modeles \
    749     -netcdf /smplocal/pub/NetCDF/4.1.3/mpi -hdf5 /smplocal/pub/HDF5/1.8.9/par \
    750     -MPI /smplocal/intel/compilers_and_libraries_2017.2.174/linux/mpi/intel64/ \
    751     -arch X64_ADA > xios.log 2>&1
    752    elif [ ${hostname:0:5} = jean- ] ; then
     710   if [ ${hostname:0:5} = jean- ] ; then
    753711    echo 'Need to work on install_xios implementation for jean-zay'
    754712    exit
     
    910868echo log file : $lmdzlog
    911869
     870if [ "$env_file" != "" ] ; then mv arch/arch-${arch}.env arch/arch-${arch}.orig ; \cp -f $env_file arch/arch-${arch}.env ; fi
     871
    912872echo install.sh avant_compilation `date`
    913873if [ $compile_with_fcm = 1 ] ; then makelmdz="makelmdz_fcm $optim -arch $arch -j 8 " ; else makelmdz="makelmdz $optim -arch $arch" ; fi
     
    987947  fi
    988948  rm -f compile.sh
    989   if [ ${hostname:0:5} = ada33 ] ; then echo "module load intel/2017.2" > compile.sh ; fi
    990949  echo resol=${grid_resolution} >> compile.sh
    991950  echo ./$makelmdz $optim $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh
Note: See TracChangeset for help on using the changeset viewer.