Changeset 6550 for CONFIG/UNIFORM/v6/IPSLCM6.3
- Timestamp:
- 07/13/23 14:13:57 (10 months ago)
- Location:
- CONFIG/UNIFORM/v6/IPSLCM6.3
- Files:
-
- 25 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6.3/compile_ipslcm6.sh
r6533 r6550 31 31 rad=rrtm 32 32 opt_rad="" 33 # choose inca chemistry 34 optchimie=AER 33 35 34 36 # Optimization mode … … 70 72 Options: [LR / VLR / MR1 / MR025] Model resolution, choose only one. Default: LR. 71 73 [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 72 [ESM AER] Compile IPSLCM6 for AERinteractif on atmosphere73 [ESMCO2AER] Compile IPSLCM6 for both interactive CO2 and AER, and also with transfer of species from PISCES to INCA.74 [ESMCHEM] Compile IPSLCM6 for chemistry interactif on atmosphere 75 [ESMCO2AER] Compile IPSLCM6 for both interactive CO2 and chemistry, and also with transfer of species from PISCES to INCA. 74 76 [-full] Full recompilation of all components. This option can be added to all other options. 75 77 [-cleannemo] Full recompilation of NEMO component only. … … 99 101 Example 7: choose radiative schema for LMDZ (oldrad/rrtm/ecrad). Default is rrtm 100 102 ./compile_ipslcm6.sh MR025 -rad ecrad 103 104 Example 8: Compilation of IPSLCM6 for ESM with INCA chemistry (default CHEMISTRY=AER) 105 ./compile_ipslcm6.sh ESMCHEM 106 107 Example 9: Compilation of IPSLCM6 for ESM with INCA chemistry and choose the chemistry 108 ./compile_ipslcm6.sh ESMCHEM -chimie GES 101 109 102 110 … … 108 116 "MR025") resol_atm=256x256x79; resol_oce=ORCA025 ; icemodel=lim3; oceanbio=n; shift ;; 109 117 "ESMCO2") esmco2=y; shift ;; 110 "ESM AER") esmaer=y; shift ;;111 "ESMCO2AER") esmco2=y; esm aer=y; shift ;;118 "ESMCHEM") esmchem=y; shift ;; 119 "ESMCO2AER") esmco2=y; esmchem=y; shift ;; 112 120 "CE0L") ce0l=y ; shift ;; 113 121 "-rad") rad=$2; shift ; shift;; … … 124 132 "-full_inca") full_inca="-clean"; shift ;; 125 133 "-cleannemo") full_nemo=y ; shift ;; 134 "-chimie") optchimie=$2; shift ; shift;; 135 126 136 *) echo "unknown option "$1" , exiting..." ; exit 127 137 esac … … 130 140 echo "Following options are set in current compiling:" >> $outfile 131 141 echo " resol_atm=${resol_atm}, resol_oce=${resol_oce}, icemodel=${icemodel}, oceanbio=${oceanbio}" >> $outfile 132 echo " esmco2=${esmco2}, esm aer=${esmaer}" >> $outfile142 echo " esmco2=${esmco2}, esmchem=${esmchem}, chemistry=${optchimie}" >> $outfile 133 143 echo " ce0l=${ce0l}" >> $outfile 134 144 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile … … 282 292 if [ ${oceanbio} == y ] ; then 283 293 if [ ${esmco2} == y ] ; then 284 if [ ${esm aer} == y ] ; then294 if [ ${esmchem} == y ] ; then 285 295 delkeys="key_nosignedzero key_mpp_rep" 286 296 else … … 340 350 341 351 if [ -f $nemo_root/$cfg_wrk/BLD/bin/nemo.exe ] ; then 342 if [ ${esmco2} == y ] && [ ${esm aer} == n ] ; then352 if [ ${esmco2} == y ] && [ ${esmchem} == n ] ; then 343 353 mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCO2_${resol_oce}_${optmode} 344 elif [ ${esmco2} == y ] && [ ${esm aer} == y ] ; then354 elif [ ${esmco2} == y ] && [ ${esmchem} == y ] ; then 345 355 mv $nemo_root/$cfg_wrk/BLD/bin/nemo.exe $modipsl/bin/opa.ESMCO2AER_${resol_oce}_${optmode} 346 356 else … … 352 362 ## 2.6 Compile LMDZ for regular latlon configuration 353 363 # If necessary compile INCA modele with AER configuration 354 if [ ${esm aer} == y ] ; then364 if [ ${esmchem} == y ] ; then 355 365 cd $modipsl/modeles/INCA 356 366 #compile INCA regulat lat_lon chimie library 357 367 echo; echo "NOW COMPILE INCA AER on resolution = ${resol_atm}" 358 368 if [ ${esmco2} == y ] ; then 359 echo ./makeinca_fcm -chimie AER-$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile360 ./makeinca_fcm -chimie AER-$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile 2>&1369 echo ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile 370 ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca -cplocninca >> $outfile 2>&1 361 371 else 362 echo ./makeinca_fcm -chimie AER-$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile363 ./makeinca_fcm -chimie AER-$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile 2>&1372 echo ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile 373 ./makeinca_fcm -chimie ${optchimie} -$optmode -xios -parallel mpi_omp -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile 2>&1 364 374 fi 365 375 # Test if compiling finished … … 370 380 371 381 echo "Move inca.dat modipsl/bin" 372 if [[ -f $modipsl/modeles/INCA/SIMULATIONS/ AER/inca.dat ]] ; then373 mv $modipsl/modeles/INCA/SIMULATIONS/ AER/inca.dat $modipsl/bin/inca_${resol_atm}_${optmode}_AER.dat ;382 if [[ -f $modipsl/modeles/INCA/SIMULATIONS/$optchimie/inca.dat ]] ; then 383 mv $modipsl/modeles/INCA/SIMULATIONS/$optchimie/inca.dat $modipsl/bin/inca_${optchimie}.dat ; 374 384 else 375 385 echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 376 386 exit 377 387 fi 378 388 389 echo "Move tracer.def to modipsl/bin" 390 if [[ -f $modipsl/modeles/INCA/tracer.def ]] ; then 391 mv $modipsl/modeles/INCA/tracer.def $modipsl/bin/tracer_${optchimie}.def ; 392 fi 393 394 395 379 396 fi 380 397 … … 384 401 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" 385 402 echo >> $outfile ; echo " NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" >> $outfile 386 # Retrieve the final svn release number, needed for radiative code suffix of executable387 lmdzsvn=`svnversion . | egrep -o "[0-9]+" | awk 'NR==1'`388 echo >> $outfile ; echo "lmdzsvn= $lmdzsvn " >> $outfile389 403 390 404 # Check if the compilation of LMDZ was previsouly interupted prematured. … … 404 418 case $rad in 405 419 oldrad) opt_rad="" ;; 406 rrtm) if [ $lmdzsvn -le 4185 ] ; then opt_rad="-rrtm true" ; else opt_rad="-rad rrtm" ; fi;;420 rrtm) opt_rad="-rad rrtm" ;; 407 421 ecrad) opt_rad="-rad ecrad" ;; 408 422 *) echo Only oldrad rrtm ecrad for rad option ; exit 409 423 esac 410 424 411 if [ $lmdzsvn -le 4185 -a $rad = "ecrad" ] ; then echo "ecrad only available for LMDZ rev starting with 4186 " ; exit ; fi 412 413 414 if [ ${esmaer} == n ] ; then 425 426 427 if [ ${esmchem} == n ] ; then 415 428 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 416 ./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>&1429 ./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 417 430 else 418 431 #in esm aer case add chemistry option to lmdz compilation 419 432 if [ ${esmco2} == y ] ; then 420 433 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -cplocninca -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 421 ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -cplocninca -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 2>&1434 ./makelmdz_fcm -d ${resol_atm} -c OMCT -cosp true -rrtm true -$optmode -mem -parallel $parallel -chimie INCA -cplocninca -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 2>&1 422 435 else 423 436 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 >> $outfile 424 ./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>&1437 ./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>&1 425 438 fi 426 439 fi … … 444 457 445 458 suffix=_${resol_atm}_phylmd 446 if [ $lmdzsvn -ge 4186 ] ; then suffix=${suffix}_${rad} ; fi 459 suffix=${suffix}_${rad} 447 460 suffix=${suffix}_para_mem_orch_couple 448 if [ ${esm aer} == n ] ; then461 if [ ${esmchem} == n ] ; then 449 462 suffix=${suffix}.e 450 463 else … … 455 468 456 469 if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ; then 457 if [ ${esm aer} == n ] ; then470 if [ ${esmchem} == n ] ; then 458 471 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 459 472 else 460 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_ AER.e473 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_${optchimie}.e 461 474 fi 462 475 else
Note: See TracChangeset
for help on using the changeset viewer.