- Timestamp:
- Dec 2, 2015, 4:28:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install.sh
r2203 r2404 48 48 49 49 version=trunk 50 version=20141127.trunk51 50 version=testing 51 version=20151130.trunk 52 52 53 53 compilo=gfortran # compilo=pgf90 or g95 or gfortran or ifort sur PC linux … … 69 69 70 70 # choose the resolution for the bench runs 71 # grid_resolution= 32x24x11 or 48x36x19 for tests (test without ORCHIDEE) 72 # 96x71x19 standard configuration 73 grid_resolution=48x36x19 71 # grid_resolution= 32x24x11, 32x32x39 or 48x36x19 for tests 72 grid_resolution=32x32x39 74 73 75 74 ## compile_with_fcm=1 : use makelmdz_fcm, possible a of version 20111103.trunk (LMDZ5/trunk rev 1578) 76 75 ## compile_with_fcm=0 : use makelmdz 77 76 compile_with_fcm=1 77 78 79 80 if [ -d /u/lmdz/WWW/Distrib ] ; then 81 dirget=/u/lmdz/WWW/Distrib 82 elif [ -d ~/LMDZ/Distrib ] ; then 83 dirget=~/LMDZ/Distrib 84 else 85 dirget=NONE 86 fi 87 wget='wget http://www.lmd.jussieu.fr/~lmdz/Distrib' 78 88 79 89 … … 133 143 elif [ $compilo = $gfortran ] ; then 134 144 OPTIM='-O3' 135 OPTDEB="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow -O0 -fstack-protector-all "145 OPTDEB="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow -O0 -fstack-protector-all -finit-real=nan -fbacktrace" 136 146 OPTDEV="-Wall -fbounds-check" 137 147 fmod='I ' … … 143 153 elif [ $compilo = mpif90 ] ; then 144 154 OPTIM='-O3' 145 OPTDEB="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow -O0 -fstack-protector-all "155 OPTDEB="-g3 -Wall -fbounds-check -ffpe-trap=invalid,zero,overflow -O0 -fstack-protector-all -finit-real=nan -fbacktrace" 146 156 OPTDEV="-Wall -fbounds-check" 147 157 BASE_LD="-lblas" … … 235 245 236 246 237 for logiciel in cshwget tar gzip make $compilo gcc ; do247 for logiciel in wget tar gzip make $compilo gcc ; do 238 248 if [ "`which $logiciel`" = "" ] ; then 239 249 echo You must first install $logiciel on your system … … 262 272 echo '##########################################################' 263 273 cd $MODEL 264 wget http://www.lmd.jussieu.fr/~lmdz/DistribG95/modipsl.$version.tar.gz 265 echo install.sh wget_OK `date` 266 gunzip modipsl.$version.tar.gz 267 tar xvf modipsl.$version.tar 268 \rm modipsl.$version.tar 274 if [ -f $dirget/modipsl.$version.tar.gz ] ; then 275 tar xvf $dirget/modipsl.$version.tar.gz 276 else 277 $wget/modipsl.$version.tar.gz 278 tar xvf modipsl.$version.tar.gz 279 \rm modipsl.$version.tar.gz 280 fi 269 281 270 282 # We download LMDZ and make some modifications to make it … … 282 294 echo '##########################################################' 283 295 cd $MODEL 284 wget http://www.lmd.jussieu.fr/~lmdz/DistribG95/netcdf-4.0.1.tar.gz 285 gunzip netcdf-4.0.1.tar.gz 286 tar xvf netcdf-4.0.1.tar 287 \rm -f netcdf-4.0.1.tar 296 if [ -f $dirget/netcdf-4.0.1.tar.gz ] ; then 297 tar xvf $dirget/netcdf-4.0.1.tar.gz 298 else 299 $wget/netcdf-4.0.1.tar.gz 300 tar xvf netcdf-4.0.1.tar.gz 301 \rm -f netcdf-4.0.1.tar.gz 302 fi 288 303 289 304 cd netcdf-4.0.1 … … 500 515 ################################################################## 501 516 echo install.sh avant_compilation `date` 502 if [ $compile_with_fcm = 1 ] ; then makelmdz="makelmdz_fcm - arch local" ; else makelmdz=makelmdz ; fi517 if [ $compile_with_fcm = 1 ] ; then makelmdz="makelmdz_fcm -j 8 -arch local" ; else makelmdz=makelmdz ; fi 503 518 504 519 ./$makelmdz -d ${grid_resolution} -v $veget_version gcm … … 529 544 bench=bench_lmdz_${grid_resolution} 530 545 echo install.sh avant_chargement_bench `date` 531 wget http://www.lmd.jussieu.fr/~lmdz/DistribG95/$bench.tar.gz 532 echo install.sh apres_chargement_bench `date` 533 gunzip $bench.tar.gz 534 tar xvf $bench.tar 546 if [ -f $dirget/$bench.tar.gz ] ; then 547 tar xvf $dirget/$bench.tar.gz 548 else 549 $wget/$bench.tar.gz 550 echo install.sh apres_chargement_bench `date` 551 tar xvf $bench.tar.gz 552 fi 535 553 536 554 if [ -f gcm.e ] ; then
Note: See TracChangeset
for help on using the changeset viewer.