- Timestamp:
- 03/02/22 16:25:41 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/compile_icolmdzorinca.sh
r5961 r6083 19 19 # Resolution if compiling LMDZ in regular mode without DYNAMICO 20 20 # Use for example following "./compile_icolmdzorinca.sh -regular_latlon 144x142x79" 21 re gular_latlon=no21 resol_atm="144x142x79" 22 22 # fcm_arch 23 23 fcm_arch=default … … 30 30 full_orch="" 31 31 full_dyna="" 32 #choose if we want to compile only grid ico, grid reg. If no for both of them, we will compile the two grids 32 33 ico_only=no 33 34 reg_only=no 34 ce0l=no 35 #choose if we want to compile only create_etat0_limit 36 ce0l_only=no 37 #choose chemistry inca configuration 35 38 optchimie=GES 36 resol_atm="144x142x79"37 39 38 40 # Default netcdf_lib is used for XIOS but can be change by argument … … 60 62 Options: -full, -regular_latlon, -debug, -dev, -prod(default) 61 63 62 Example 1: Default compilation of DYNAMICO-LMDZ-ORCHIDEE with XIOS and IOIPSL64 Example 1: Default compilation of [DYNAMICO-LMDZ-ORCHIDEE-INCA GES with XIOS and IOIPSL] and [LMDZ(144x142x79)-ORCHIDEE-INCA GES with XIOS and IOIPSL] and [create_etat0_limit] 63 65 ./compile_icolmdzorinca.sh 64 66 … … 69 71 ./compile_icolmdzorinca.sh -full 70 72 71 Example 4: Compilation of LMDZ in regular lat-lon for dimension 144x142x79.72 The dimension can be changed to any other 3d dimension .DYNAMICO is also compiled as default.73 ./compile_icolmdzorinca.sh -regular_latlon 144x142x7974 75 Example 5: Compilation with a chosen chemistry, for example DUSS (default: NMHC_AER_S)73 Example 4: Define dimension for regular grid (default one is 144x142x79) 74 The dimension can be changed to any other 3d dimension - in this example DYNAMICO is also compiled as default. 75 ./compile_icolmdzorinca.sh -regular_latlon 256x256x79 76 77 Example 5: Compilation with a chosen chemistry, for example DUSS (default: GES) 76 78 ./compile_icolmdzorinca.sh -chimie DUSS 77 79 … … 82 84 ./compile_icolmdzorinca.sh -reg_only 83 85 84 Example 8 : compile create_etat0_limit (and gcm.e)85 ./compile_icolmdzorinca.sh -ce0l 86 Example 8: compile only create_etat0_limit 87 ./compile_icolmdzorinca.sh -ce0l_only 86 88 87 89 end_help … … 102 104 "-ico_only") ico_only=yes ; shift ;; 103 105 "-reg_only") reg_only=yes ; shift ;; 104 "-ce0l ")ce0l=yes ; shift ;;106 "-ce0l_only") ce0l=yes ; shift ;; 105 107 "-netcdf_lib_seq") netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 106 108 "-chimie") optchimie=$2; shift ; shift;; … … 111 113 112 114 echo "Following options are set in current compiling:" >> $outfile 113 echo " regular_latlon=$regular_latlon (if yes, then resol_atm=${resol_atm})" >> $outfile 115 echo " chemistry=${optchimie}">> $outfile 116 echo " ico_only=${ico_only}, reg_only=${reg_only}, ce0l_only=${ce0l_only}" >> $outfile 117 echo " regular_latlon=${resol_atm} (use to create executable on regular grid)" >> $outfile 114 118 echo " optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile 115 119 echo " full_flag=$full_flag, full_xios=$full_xios, full_lmdz=$full_lmdz, full_orch=$full_orch, full_dyna=$full_dyna" >> $outfile 116 120 echo >> $outfile 121 117 122 118 123 ### Read host dependent default values … … 271 276 272 277 ## 2.4 Compile lmdz 273 cd $modipsl/modeles/LMDZ 274 275 if [ $reg_only = no ] ; then 278 279 if [ $reg_only = no ] && [ $ce0l_only = no ]; then 280 281 cd $modipsl/modeles/LMDZ 276 282 277 283 # Compile LMDZ as library to couple to DYNAMICO … … 342 348 ## 2.7 Compile LMDZ for regular latlon configuration 343 349 344 if [ $ico_only = no ] ; then 350 # Find executable suffix 351 if [ $parallel == seq ] || [ $parallel == none ] ; then 352 suffix=_${resol_atm}_phylmd_seq_orch_inca.e 353 else 354 suffix=_${resol_atm}_phylmd_para_mem_orch_inca.e 355 fi 356 echo gcm suffix = $suffix 357 358 if [ $ico_only = no ] && [ $ce0l_only = no ]; then 359 345 360 cd $modipsl/modeles/LMDZ 346 361 # Compile LMDZ regular lat-lon exectuable … … 368 383 exit 369 384 fi 370 fi 371 372 373 if [ $ce0l = yes ] ; then 374 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 375 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 376 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 377 378 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 379 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 2>&1 380 # Test if compiling finished 381 if [[ $? != 0 ]] ; then 382 echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 383 echo "ALL INFORMATION IN FILE $outfile" 384 exit 385 fi 386 fi 387 388 # Find executable suffix 389 if [ $parallel == seq ] || [ $parallel == none ] ; then 390 suffix=_${resol_atm}_phylmd_seq_orch_inca.e 391 else 392 suffix=_${resol_atm}_phylmd_para_mem_orch_inca.e 393 fi 394 echo gcm suffix = $suffix 395 396 if [ $ico_only = no ] ; then 385 386 397 387 # Move executables to modipsl/bin folder 398 388 echo "Move gcm.e and ce0l executable to modipsl/bin" … … 405 395 exit 406 396 fi 397 407 398 fi 408 399 409 if [ $ce0l = yes ] ; then 400 401 if [ $ce0l = yes ] || [ $ico_only = no ] && [ $reg_only = no ] ; then 402 403 cd $modipsl/modeles/LMDZ 404 405 # Compile ce0l initialization program for LMDZ regular lat-lon exectuable 406 echo; echo "NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" 407 echo >> $outfile ; echo " NOW COMPILE CE0L OF LMDZ. Resolution = ${resol_atm}" >> $outfile 408 409 echo ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 410 ./makelmdz_fcm -d ${resol_atm} -p lmd -rrtm true -$optmode -mem -parallel $parallel -io xios -v orchidee2.1 -chimie INCA -arch $fcm_arch -j 8 $full_lmdz ce0l >> $outfile 2>&1 411 # Test if compiling finished 412 if [[ $? != 0 ]] ; then 413 echo "THERE IS A PROBLEM IN CE0L (LMDZ) REGULAR LATLON COMPILATION - STOP" 414 echo "ALL INFORMATION IN FILE $outfile" 415 exit 416 fi 410 417 411 418 if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ; then … … 417 424 exit 418 425 fi 426 427 419 428 fi 420 421 429 422 430 echo >>$outfile ; echo "ALL COMPILING FINISHED" >> $outfile
Note: See TracChangeset
for help on using the changeset viewer.