Changeset 3610 for BOL/script_install
- Timestamp:
- Nov 29, 2019, 12:33:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r3573 r3610 85 85 # 96x71x19 standard configuration 86 86 grid_resolution=144x142x79 87 grid_resolution=96x95x39 87 88 grid_resolution=48x36x19 89 grid_resolution=32x32x39 88 90 89 91 ## parallel can take the values none/mpi/omp/mpi_omp … … 161 163 162 164 -SCM install 1D version automatically 165 166 -debug compile everything in debug mode 163 167 164 168 -opt_makelmdz to call makelmdz or makelmdz_fcm with additional options … … 186 190 esac ;; 187 191 "-bench") bench=$2 ; shift ; shift ;; 192 "-debug") optim=-debug ; shift ;; 188 193 "-name") MODEL=$2 ; shift ; shift ;; 189 194 "-netcdf") netcdf=$2 ; shift ; shift ;; … … 196 201 197 202 #Chemin pour placer le modele 198 if [ "$MODEL" = "" ] ; then MODEL=./LMDZ$version$svn ; fi203 if [ "$MODEL" = "" ] ; then MODEL=./LMDZ$version$svn$optim ; fi 199 204 200 205 … … 224 229 o_ins_make="-t jeanzay" ; 225 230 make=gmake ; 231 module purge 226 232 module load intel-compilers/19.0.4 ; 227 233 module load intel-mpi/19.0.4 ; … … 272 278 else 273 279 echo "Cannot find mpif90" ; 274 exit;280 if [ $parallel = none ] ; then exit ; fi ; 275 281 fi ; 276 282 par_comp=${path_mpi}/mpif90 ; … … 427 433 export CXXFLAGS="-O2 -ip -fpic -mcmodel=large" 428 434 export fpp_flags="-P -traditional" 429 compile_with_fcm=1 435 # Pourquoi forcer la compilation fcm. Marche mieux sans 436 #compile_with_fcm=1 430 437 431 438 elif [ $compiler = mpiifort ] ; then 432 compile_with_fcm=1 439 echo on ne fait rien la 440 # Pourquoi forcer la compilation fcm. Marche mieux sans 441 #compile_with_fcm=1 433 442 434 443 else … … 500 509 501 510 502 for logiciel in cshwget tar gzip make $compiler gcc ; do511 for logiciel in wget tar gzip make $compiler gcc ; do 503 512 if [ "`which $logiciel`" = "" ] ; then 504 513 echo You must first install $logiciel on your system … … 713 722 # Compile IOIPSL on jean-zay 714 723 cd $MODEL/modipsl/modeles/IOIPSL/src 715 gmake 724 gmake > ioipsl.log 725 cd $MODEL/modipsl/modeles/IOIPSL/tools 726 gmake > ioipsl.log 716 727 717 728 fi # of if [${hostname:0:5} = ada33 ] … … 756 767 if [ "$veget" = 1 ] ; then 757 768 cd $MODEL/modipsl/modeles/ORCHIDEE 769 # Correctif suite debug Jean-Zay 770 sed -i -e 's/9010 FORMAT(A52,F17.14)/9010 FORMAT(A52,F20.14)/' src_stomate/stomate.f90 771 opt_orc="-prod" ; if [ "$optim" = "-debug" ] ; then opt_orc="-debug" ; fi 772 758 773 orchideelog=`pwd`/orchidee.log 759 774 echo '########################################################' … … 770 785 set +e ; svn update -r $orchidee_rev ; set -e 771 786 fi 787 # Correctif suite debug Jean-Zay 788 if [ -f src_global/time.f90 ] ; then sed -i -e 's/CALL tlen2itau/\!CALL tlen2itau/' src_global/time.f90 ; fi 772 789 ################################################################### 773 790 veget_version=orchidee2.0 … … 791 808 cd ../ 792 809 # compiling ORCHIDEE sequential mode 793 ./makeorchidee_fcm -j 8 -noxios -prod-parallel none -arch $arch > $orchideelog 2>&1794 echo ./makeorchidee_fcm -j 8 -noxios -prod-parallel none -arch $arch810 ./makeorchidee_fcm -j 8 -noxios $opt_orc -parallel none -arch $arch > $orchideelog 2>&1 811 echo ./makeorchidee_fcm -j 8 -noxios $opt_orc -parallel none -arch $arch 795 812 echo End of the first compilation of orchidee ; pwd 796 813 else … … 894 911 895 912 echo install.sh avant_compilation `date` 896 if [ $compile_with_fcm = 1 ] ; then makelmdz="makelmdz_fcm -arch $arch -j 8" ; else makelmdz="makelmdz-arch $arch" ; fi913 if [ $compile_with_fcm = 1 ] ; then makelmdz="makelmdz_fcm $optim -arch $arch -j 8 " ; else makelmdz="makelmdz $optim -arch $arch" ; fi 897 914 898 915 # use the orchidee interface that has no z0h … … 903 920 # sequential compilation and bench 904 921 if [ "$sequential" = 1 ] ; then 905 echo "./$makelmdz $ OPT_MAKELMDZ-rrtm true $opt_cosp -d ${grid_resolution} -v $veget_version gcm " >> compile.sh922 echo "./$makelmdz $optim $OPT_MAKELMDZ $optim -rrtm true $opt_cosp -d ${grid_resolution} -v $veget_version gcm " >> compile.sh 906 923 chmod +x ./compile.sh 907 924 if [ $bench != 0 ] ; then ./compile.sh > $lmdzlog 2>&1 ; fi … … 942 959 echo compiling ORCHIDEE parallel mode 943 960 echo logfile $orchideelog 944 ./makeorchidee_fcm -j 8 -clean -noxios -prod-parallel $parallel -arch $arch > $orchideelog 2>&1945 ./makeorchidee_fcm -j 8 -noxios -prod-parallel $parallel -arch $arch >> $orchideelog 2>&1946 echo ./makeorchidee_fcm -j 8 -clean -noxios -prod-parallel $parallel -arch $arch947 echo ./makeorchidee_fcm -j 8 -noxios -prod-parallel $parallel -arch $arch961 ./makeorchidee_fcm -j 8 -clean -noxios $opt_orc -parallel $parallel -arch $arch > $orchideelog 2>&1 962 ./makeorchidee_fcm -j 8 -noxios $opt_orc -parallel $parallel -arch $arch >> $orchideelog 2>&1 963 echo ./makeorchidee_fcm -j 8 -clean -noxios $opt_orc -parallel $parallel -arch $arch 964 echo ./makeorchidee_fcm -j 8 -noxios $opt_orc -parallel $parallel -arch $arch 948 965 elif [ $veget = 1 ] ; then 949 966 echo '##########################################################' … … 972 989 if [ ${hostname:0:5} = ada33 ] ; then echo "module load intel/2017.2" > compile.sh ; fi 973 990 echo resol=${grid_resolution} >> compile.sh 974 echo ./$makelmdz $ OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh975 echo ./$makelmdz $ OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm991 echo ./$makelmdz $optim $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh 992 echo ./$makelmdz $optim $OPT_MAKELMDZ -rrtm true $opt_cosp $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm 976 993 chmod +x ./compile.sh 977 994 if [ $bench != 0 ] ; then ./compile.sh > $lmdzlog 2>&1 ; fi
Note: See TracChangeset
for help on using the changeset viewer.