Changeset 4707 for CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh
- Timestamp:
- 09/16/19 14:49:56 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/IPSLCM6.2/compile_ipslcm6.sh
r4645 r4707 24 24 # Version ESM CO2: CO2 interactif ocean/atmosphere (y/n) 25 25 esmco2=n 26 # Version ESM AER : Aer interactif chemistry / atmosphere (y/n) 27 esmaer=n 26 28 # Also compile ce0l subprogram to LMDZ (y/n) 27 29 ce0l=n … … 37 39 full_flag="" 38 40 full_nemo=n 41 full_inca="" 39 42 full_xios="" 40 43 full_lmdz="" … … 64 67 Options: [LR / VLR / MR1 / MR025] Model resolution, choose only one. Default: LR. 65 68 [ESMCO2] Compile IPSLCM6 for CO2 interactif ocean/atmosphere. 69 [ESMAER] Compile IPSLCM6 for AER interactif on atmosphere 66 70 [-full] Full recompilation of all components. This option can be added to all other options. 67 71 [-cleannemo] Full recompilation of NEMO component only. … … 96 100 "MR025") resol_atm=256x256x79; resol_oce=ORCA025 ; icemodel=lim3; oceanbio=n; shift ;; 97 101 "ESMCO2") esmco2=y; shift ;; 102 "ESMAER") esmaer=y; shift ;; 98 103 "CE0L") ce0l=y ; shift ;; 99 104 "-parallel") parallel=$2 ; shift ; shift ;; … … 107 112 "-full_orch") full_orch="-full" ; shift ;; 108 113 "-full_nemo") full_nemo=y ; shift ;; 114 "-full_inca") full_inca="-clean"; shift ;; 109 115 "-cleannemo") full_nemo=y ; shift ;; 110 116 *) echo "unknown option "$1" , exiting..." ; exit … … 301 307 302 308 ## 2.6 Compile LMDZ for regular latlon configuration 309 # If necessary compile INCA modele with AER configuration 310 if [ ${esmaer} == y ] ; then 311 cd $modipsl/modeles/INCA 312 #compile INCA regulat lat_lon chimie librairy 313 echo; echo "NOW COMPILE INCA AER on resolution = ${resol_atm}" 314 echo ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -resol ${resol_atm} -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile 315 ./makeinca_fcm -chimie AER -$optmode -xios -parallel mpi_omp -resol ${resol_atm} -j 8 -arch ${fcm_arch} -arch_path $arch_path $full_flag $full_inca >> $outfile 2>&1 316 317 # Test if compiling finished 318 if [[ $? != 0 ]] ; then 319 echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 320 exit 321 fi 322 323 echo "Move inca.dat modipsl/bin" 324 if [[ -f $modipsl/modeles/INCA/SIMULATIONS/AER/inca.dat ]] ; then 325 mv $modipsl/modeles/INCA/SIMULATIONS/AER/inca.dat $modipsl/bin/inca_${resol_atm}_${optmode}_AER.dat ; 326 else 327 echo "THERE IS A PROBLEM IN INCA COMPILATION - STOP" 328 exit 329 fi 330 331 fi 332 333 303 334 cd $modipsl/modeles/LMDZ 304 335 # Compile LMDZ regular lat-lon exectuable … … 319 350 fi 320 351 321 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 322 ./makelmdz_fcm -d ${resol_atm} -c OMCT -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>&1 352 if [ ${esmaer} == n ] ; then 353 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -arch $fcm_arch -arch_path $arch_path -j 8 $full_lmdz gcm >> $outfile 354 ./makelmdz_fcm -d ${resol_atm} -c OMCT -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>&1 355 else 356 #in esm aer case add chemistry option to lmdz compilation 357 echo ./makelmdz_fcm -d ${resol_atm} -c OMCT -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 358 ./makelmdz_fcm -d ${resol_atm} -c OMCT -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 359 fi 323 360 # Test if compiling finished 324 361 if [[ $? != 0 ]] ; then … … 333 370 ls -lrt $modipsl/modeles/LMDZ/bin >> $outfile 334 371 echo >> $outfile 335 suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 372 if [ ${esmaer} == n ] ; then 373 suffix=_${resol_atm}_phylmd_para_mem_orch_couple.e 374 else 375 suffix=_${resol_atm}_phylmd_para_mem_orch_couple_inca.e 376 fi 336 377 echo gcm suffix = $suffix 337 378 338 379 if [ -f $modipsl/modeles/LMDZ/bin/gcm${suffix} ] ; then 339 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 380 if [ ${esmaer} == n ] ; then 381 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}.e 382 else 383 mv $modipsl/modeles/LMDZ/bin/gcm${suffix} $modipsl/bin/gcm_${resol_atm}_${optmode}_AER.e 384 fi 340 385 else 341 386 echo "ERROR gcm${suffix} executable does not exist."
Note: See TracChangeset
for help on using the changeset viewer.