Changeset 6083 for CONFIG/UNIFORM


Ignore:
Timestamp:
03/02/22 16:25:41 (2 years ago)
Author:
acosce
Message:

update compile_icolmdzorinca.sh to follow modifications done on compile_icolmdzor.sh script rev [6080]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/ICOLMDZORINCA_v7/compile_icolmdzorinca.sh

    r5961 r6083  
    1919# Resolution if compiling LMDZ in regular mode without DYNAMICO 
    2020# Use for example following "./compile_icolmdzorinca.sh -regular_latlon 144x142x79" 
    21 regular_latlon=no 
     21resol_atm="144x142x79" 
    2222# fcm_arch 
    2323fcm_arch=default 
     
    3030full_orch="" 
    3131full_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 
    3233ico_only=no 
    3334reg_only=no 
    34 ce0l=no 
     35#choose if we want to compile only create_etat0_limit 
     36ce0l_only=no 
     37#choose chemistry inca configuration  
    3538optchimie=GES 
    36 resol_atm="144x142x79" 
    3739 
    3840# Default netcdf_lib is used for XIOS but can be change by argument 
     
    6062Options: -full, -regular_latlon, -debug, -dev, -prod(default) 
    6163 
    62 Example 1: Default compilation of DYNAMICO-LMDZ-ORCHIDEE with XIOS and IOIPSL 
     64Example 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] 
    6365./compile_icolmdzorinca.sh 
    6466 
     
    6971./compile_icolmdzorinca.sh -full 
    7072 
    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 144x142x79 
    74  
    75 Example 5: Compilation with a chosen chemistry, for example DUSS  (default: NMHC_AER_S) 
     73Example 4: Define dimension for regular grid (default one is  144x142x79) 
     74The 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 
     77Example 5: Compilation with a chosen chemistry, for example DUSS  (default: GES) 
    7678./compile_icolmdzorinca.sh -chimie DUSS  
    7779 
     
    8284./compile_icolmdzorinca.sh -reg_only 
    8385 
    84 Example 8 : compile create_etat0_limit (and gcm.e)  
    85 ./compile_icolmdzorinca.sh -ce0l 
     86Example 8: compile only create_etat0_limit  
     87./compile_icolmdzorinca.sh -ce0l_only 
    8688 
    8789end_help 
     
    102104        "-ico_only")        ico_only=yes  ; shift ;; 
    103105        "-reg_only")        reg_only=yes  ; shift ;; 
    104         "-ce0l")            ce0l=yes  ; shift ;; 
     106        "-ce0l_only")       ce0l=yes  ; shift ;; 
    105107        "-netcdf_lib_seq")  netcdf_lib="--netcdf_lib netcdf4_seq"; shift ;; 
    106108        "-chimie")          optchimie=$2; shift ; shift;; 
     
    111113 
    112114echo "Following options are set in current compiling:" >> $outfile  
    113 echo "   regular_latlon=$regular_latlon (if yes, then resol_atm=${resol_atm})" >> $outfile  
     115echo "   chemistry=${optchimie}">> $outfile 
     116echo "   ico_only=${ico_only}, reg_only=${reg_only}, ce0l_only=${ce0l_only}" >> $outfile 
     117echo "   regular_latlon=${resol_atm} (use to create executable on regular grid)" >> $outfile  
    114118echo "   optmode = $optmode, parallel = $parallel, fcm_arch = $fcm_arch " >> $outfile  
    115119echo "   full_flag=$full_flag, full_xios=$full_xios, full_lmdz=$full_lmdz, full_orch=$full_orch, full_dyna=$full_dyna" >> $outfile  
    116120echo >> $outfile 
     121 
    117122 
    118123### Read host dependent default values 
     
    271276 
    272277## 2.4 Compile lmdz 
    273 cd $modipsl/modeles/LMDZ 
    274  
    275 if [ $reg_only = no ] ; then  
     278 
     279if [ $reg_only = no ] && [ $ce0l_only = no ]; then  
     280 
     281    cd $modipsl/modeles/LMDZ 
    276282 
    277283    # Compile LMDZ as library to couple to DYNAMICO 
     
    342348## 2.7 Compile LMDZ for regular latlon configuration 
    343349 
    344 if [ $ico_only = no ] ; then  
     350# Find executable suffix 
     351if [ $parallel == seq ] || [ $parallel == none ] ; then 
     352    suffix=_${resol_atm}_phylmd_seq_orch_inca.e 
     353else 
     354    suffix=_${resol_atm}_phylmd_para_mem_orch_inca.e 
     355fi 
     356echo gcm suffix = $suffix 
     357 
     358if [ $ico_only = no ] && [ $ce0l_only = no ]; then  
     359 
    345360    cd $modipsl/modeles/LMDZ 
    346361    # Compile LMDZ regular lat-lon exectuable 
     
    368383        exit 
    369384    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 
    397387    # Move executables to modipsl/bin folder 
    398388    echo "Move gcm.e and ce0l executable to modipsl/bin" 
     
    405395        exit 
    406396    fi 
     397 
    407398fi  
    408399 
    409 if [ $ce0l = yes ] ; then  
     400 
     401if [ $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 
    410417 
    411418    if [ -f $modipsl/modeles/LMDZ/bin/ce0l${suffix} ] ;  then 
     
    417424        exit 
    418425    fi 
     426 
     427 
    419428fi  
    420  
    421429 
    422430echo >>$outfile ; echo "ALL COMPILING FINISHED" >> $outfile 
Note: See TracChangeset for help on using the changeset viewer.