Changeset 6210
- Timestamp:
- 08/01/22 12:13:05 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh
r5644 r6210 28 28 # Also compile ce0l subprogram to LMDZ (y/n) 29 29 ce0l=n 30 # choose radiative code compilation option 31 rad=rrtm 32 opt_rad="" 30 33 31 34 # Optimization mode … … 94 97 ./compile_ipslcm6.sh MR025 -debug -full 95 98 99 Example 7: choose radiative schema for LMDZ (oldrad/rrtm/ecrad). Default is rrtm 100 ./compile_ipslcm6.sh MR025 -rad ecrad 101 102 96 103 end_help 97 104 exit;; … … 104 111 "ESMCO2AER") esmco2=y; esmaer=y; shift ;; 105 112 "CE0L") ce0l=y ; shift ;; 113 "-rad") rad=$2; shift;; 106 114 "-parallel") parallel=$2 ; shift ; shift ;; 107 115 "-arch") fcm_arch="$2" ; shift ; shift ;; … … 362 370 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 363 371 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" >> $outfile 372 # Retrieve the final svn release number, needed for radiative code suffix of executable 373 lmdzsvn=`svnversion . | egrep -o "[0-9]+" | awk 'NR==1'` 364 374 365 375 # Check if the compilation of LMDZ was previsouly interupted prematured. … … 376 386 fi 377 387 388 # Need to define the proper option for radiative code compilation. By default, we use rrtm 389 case $rad in 390 oldrad) opt_rad="" ;; 391 rrtm) if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi ;; 392 ecrad) opt_rad="-rad ecrad" ;; 393 *) echo Only oldrad rrtm ecrad for rad option ; exit 394 esac 395 378 396 if [ ${esmaer} == n ] ; then 379 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true-$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile380 ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true-$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 2>&1397 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 398 ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 2>&1 381 399 else 382 400 #in esm aer case add chemistry option to lmdz compilation 383 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true-$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile384 ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true-$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 2>&1401 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 402 ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true $opt_rad -$optmode -mem -parallel $parallel -chimie INCA -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 2>&1 385 403 fi 386 404 … … 391 409 fi 392 410 411 412 413 393 414 # Move executables to modipsl/bin folder 394 415 echo >> $outfile … … 397 418 ls -lrt $modipsl/modeles/LMDZ/bin >> $outfile 398 419 echo >> $outfile 420 421 422 suffix=_${resol_atm}_phylmd 423 if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 424 suffix=${suffix}_para_mem_orch_couple 399 425 if [ ${esmaer} == n ] ; then 400 suffix= _${resol_atm}_phylmd_para_mem_orch_couple.e426 suffix=${suffix}.e 401 427 else 402 suffix=_${resol_atm}_phylmd_para_mem_orch_couple_inca.e 403 fi 428 suffix=${suffix}_inca.e 429 fi 430 404 431 echo gcm suffix = $suffix 405 432 … … 417 444 418 445 446 447 448 419 449 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 420 450 if [ $ce0l == y ] ; then … … 422 452 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 423 453 424 echo ./makelmdz_fcm -d ${resol_atm} -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 425 ./makelmdz_fcm -d ${resol_atm} -rrtm true -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 2>&1 454 echo ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 455 ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 2>&1 456 457 # 1er aout - remove xios from ce0l compilation # 458 # echo ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 459 # ./makelmdz_fcm -d ${resol_atm} $opt_rad -$optmode -io xios -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz ce0l >> $outfile 2>&1 460 426 461 # Test if compiling finished 427 462 if [[ $? != 0 ]] ; then … … 437 472 ls -lrt $modipsl/modeles/LMDZ/bin >> $outfile 438 473 echo >> $outfile 439 # suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 474 440 475 suffix=_${resol_atm}_phylmd_seq.e 476 if [ $lmdzsvn -ge 4186 ] ; then suffix=_${resol_atm}_phylmd_${rad}_seq.e ; fi 441 477 echo ce0l suffix = $suffix 442 478
Note: See TracChangeset
for help on using the changeset viewer.