Changeset 3645
- Timestamp:
- Mar 11, 2020, 3:48:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r3610 r3645 100 100 with_xios="n" 101 101 opt_makelmdz_xios="" 102 102 103 ## compile_with_fcm=1 : use makelmdz_fcm (1) or makelmdz (0) 103 104 compile_with_fcm=1 … … 113 114 fi 114 115 #echo "pcmac="$pcmac 116 117 env_file="" 115 118 116 119 ######################################################################### … … 167 170 168 171 -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 169 174 ........fin 170 175 exit ;; … … 194 199 "-netcdf") netcdf=$2 ; shift ; shift ;; 195 200 "-xios") with_xios="y" ; shift ;; 201 "-env_file") env_file=$2 ; shift ; shift ;; 202 196 203 *) ./install_lmdz.sh -h ; exit 197 204 esac … … 217 224 218 225 case ${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 ;;226 226 227 227 jean-) compiler="mpiifort" ; … … 231 231 module purge 232 232 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 ; 239 239 export NETCDF_LIBDIR=./ 240 240 export NETCDFFORTRAN_INCDIR=./ … … 452 452 # If installing on know machines such as IBM x3750 (Ada) 453 453 # at IDRIS, don't check for available software and don"t install netcdf 454 if [ ${hostname:0:5} = ada33 ] ; then455 netcdf=0 # no need to recompile netcdf, alreday available456 check_linux=0457 pclinux=0458 ioipsl=1 # no need to recompile ioipsl, already available459 #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" ; fi463 OPTIM="-O2 -fp-model strict -ip -axAVX,SSE4.2 -align all "464 OPTIMGCM="$OPTIM $OPTPREC"465 fi466 454 if [ ${hostname:0:5} = jean- ] ; then 467 455 netcdf=0 # no need to recompile netcdf, alreday available … … 637 625 else # bash 638 626 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.tar640 \cp -f ~rdzt401/bin/AA_make.gdef .641 fi627 #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 642 630 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar 643 631 echo 'Warning jean-zay not in AA_make.gdef' … … 687 675 688 676 else # 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 714 678 cd $MODEL/modipsl 715 679 cd util 716 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then # Bidouille pour compiler sur ada des vieux modipsl.tar680 if [ "`grep jeanzay AA_make.gdef`" = "" ] ; then 717 681 echo 'Warning jean-zay not in AA_make.gdef' 718 682 echo 'Think about updating' … … 726 690 gmake > ioipsl.log 727 691 728 fi # of if [${hostname:0:5} = ada33 ]692 fi 729 693 echo install.sh ioipsl_OK `date` 730 694 fi # of if [ $ioipsl = 1 ] … … 744 708 myget import/install_xios.bash 745 709 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 753 711 echo 'Need to work on install_xios implementation for jean-zay' 754 712 exit … … 910 868 echo log file : $lmdzlog 911 869 870 if [ "$env_file" != "" ] ; then mv arch/arch-${arch}.env arch/arch-${arch}.orig ; \cp -f $env_file arch/arch-${arch}.env ; fi 871 912 872 echo install.sh avant_compilation `date` 913 873 if [ $compile_with_fcm = 1 ] ; then makelmdz="makelmdz_fcm $optim -arch $arch -j 8 " ; else makelmdz="makelmdz $optim -arch $arch" ; fi … … 987 947 fi 988 948 rm -f compile.sh 989 if [ ${hostname:0:5} = ada33 ] ; then echo "module load intel/2017.2" > compile.sh ; fi990 949 echo resol=${grid_resolution} >> compile.sh 991 950 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.