Changeset 6677 for CONFIG/UNIFORM


Ignore:
Timestamp:
11/20/23 11:47:44 (7 months ago)
Author:
jgipsl
Message:

Add possible sub configuration to compile : IPSLCM (without INCA), IPSLCM-reg(without INCA and DYNAMICO).
Correction in compilation of subconfig.
Some more comments in the help.

Location:
CONFIG/UNIFORM/v7/IPSLCM7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh

    r6655 r6677  
    1414#### Set default options 
    1515# Activate compilation of LMDZ for regular latlon grid without DYNAMICO 
    16 regular_latlon=no 
    17 # Atmospheric resolution for regular grid for LMDZ/ORCHIDEE, if regular_latlon=yes 
     16regular_latlon=y 
     17# Atmospheric resolution for regular grid for LMDZ/ORCHIDEE, if regular_latlon=y 
    1818resol_atm=144x142x79 
    1919# Coupled with ocean biogeochemistry (y/n) 
     
    6565while (($# > 0)) ; do 
    6666    case $1 in 
    67         "-h") cat <<end_help 
     67        "-h"|"-help") cat <<end_help 
    6868######################################################################## 
    6969# Usage of the script compile_ipslcm7.sh 
     
    7373./compile_ipslcm7.sh [Options]  
    7474 
    75  
    76 Options: [-full] Full recompilation of all components. This option can be added to all other options. 
    77          [-cleannemo] Full recompilation of NEMO component only. 
    78          [-regular_latlon] Activate compilation of LMDZ for regular latlon grid with default resol_atm size in addition to the icosahedric grid.  
    79          [-resol_atm XXXxYYYxZZ] Define which regular grid to compile. 
    80          [-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod. 
    81          [-subconfig X] Set this option if you want to compile a sub-configuration. X can be: ICOLMDZORINCA, ICOLMDZOR, LMDZORINCA or LMDZOR.  
    82                         If this option is not set, all extracted components are compiled.  
    83  
    84 Example 1: Default compilation of IPSLCM7 for resolution LR  
    85           (Resolution atmos: nbp40 ) 
     75Description of all options: 
     76 
     77[-full] Full recompilation of all components. This option can be added to all other options. 
     78[-cleannemo] Full recompilation of NEMO component only. 
     79[-regular_latlon yes/no] Activate or deactivate compilation of LMDZ dynamics for regular latlon grid.  
     80                         Default resol_atm size is used. This option is set in addition to the compilation of the icosahedric grid.  
     81[-resol_atm XXXxYYYxZZ] Define which regular grid to compile. A default grid is set if this option is not used. 
     82[-debug / -dev / -prod] Level of optimization. One of these can be added to all other compile options. Default: -prod. 
     83[-subconfig X] Set this option if you want to compile a sub-configuration. X can be one of following sub-configurations :  
     84               ICOLMDZORINCA, ICOLMDZOR, LMDZORINCA, LMDZOR, IPSLCM-reg or IPSLCM 
     85               By default, all available components are compiled.  
     86[-orch4 / -orch22] Choice of ORCHIDEE version. The source code are found in modeles/ORCHIDEE_trunk or modeles/ORCHIDEE_2_2  
     87                   and a link will be set to the choosen model version. Default version is currently ORCHIDEE_2_2 (-orch22). 
     88 
     89 
     90Example 1: Default compilation of IPSLCM7  
    8691./compile_ipslcm7.sh 
    8792 
    88 Example 2: Default resolution (LR) compiled in debug mode 
     93Example 2: Default compilation in debug mode 
    8994./compile_ipslcm7.sh -debug 
    9095 
     
    9297./compile_ipslcm7.sh -full 
    9398 
    94 Example 4: Compilation of LMDZ in regular lat-lon for default dimension 144x142x79.  
    95 ./compile_ipslcm7.sh -regular_latlon 
    96            Activate regular lat-lon compilation and change resolution to 144x142x95  
     99Example 4: Compilation in addition of LMDZ in regular lat-lon for a specific resolution :  
    97100./compile_ipslcm7.sh -resol_atm 144x142x95 
    98101 
     102Example 5: Compilation without regular grid (only icosaedric grid) 
     103./compile_ipslcm7.sh -regular_latlon no 
     104 
    99105Example 5: Compiltion of ORCHIDEE_trunk version 
    100            Note that for compiling ORCHIDEE trunk you must first have extracted ORCHIDEE_trunk folder in modeles.  
    101            modeles/ORCHIDEE_2_2 folder can be kept at the same time. 
    102106./compile_ipslcm7.sh -orch4 
    103 ./compile_ipslcm7.sh -regular_latlon -orch4 
    104  
    105107 
    106108Example 6: compilation of a specific chemistry for INCA (default is GES)  
    107109./compile_ipslcm7.sh -chimie NMHC_AER_S  
     110 
     111Example 7: Compilation of sub-configuration LMDZOR :  
     112./compile_ipslcm7.sh -subconfig LMDZOR 
    108113 
    109114end_help 
     
    115120        "-dev")        optmode=dev ; shift ;; 
    116121        "-prod")       optmode=prod ; shift ;; 
    117         "-regular_latlon")  regular_latlon=yes ; shift ;; 
    118         "-resol_atm")  regular_latlon=yes ; resol_atm=$2 ; shift ; shift ;; 
     122        "-regular_latlon")  regular_latlon=$2 ; shift ; shift ;; 
     123        "-resol_atm")  regular_latlon=y ; resol_atm=$2 ; shift ; shift ;; 
    119124        "-subconfig")  subconfig=$2 ; shift ; shift ;; 
    120125        "-full")       full_flag="-full"; full_nemo=y ; full_xios="--full" ; full_lmdz="-full" ; full_orch="-full" ; full_oasis=y ; full_inca="-clean" ; full_dyna="-full" ; shift ;; 
     
    146151echo "   compinca=$compinca compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna complmdz=y comporch=y compxios=y" >> $outfile 
    147152echo >> $outfile 
    148  
    149153### Verification of argument 
    150154# Set argorch depeinding on the version of ORCHIDEE. This is argument needed for the compilation of LMDZ to consider coherent interface.  
     
    552556 
    553557## 2.10 Compile LMDZ for regular latlon configuration 
    554 if [ $regular_latlon = yes ] ; then 
     558if [ $regular_latlon = y ] ; then 
    555559 
    556560    cd $modipsl/modeles/LMDZ 
  • CONFIG/UNIFORM/v7/IPSLCM7/define_config.sh

    r6638 r6677  
    4343if [ $subconfig == default ] ; then 
    4444    echo ; echo Compilation of all availble components will be done: 
    45     echo compinca=$compinca compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna complmdz=y comporch=y compxios=y 
     45 
     46elif [ $subconfig == IPSLCM ] || [ $subconfig == IPSLCM-ico ] ; then 
     47    # Full coupled model currently without INCA 
     48    if [ $compdyna == n ] || [ $compoasis == n ] || [ $compnemo == n ] ; then 
     49        echo ; echo It is not possible to compile IPSLCM. 
     50        echo Source code is missing 
     51        exit 
     52    else 
     53        echo "Compilation of IPSLCM configuration (without INCA) will be done" 
     54        compnemo=y compoasis=y compdyna=y compinca=n complmdz=y comporch=y compxios=y 
     55    fi 
     56elif [ $subconfig == IPSLCM-reg ] ; then 
     57    # Coupled model without DYNAMICO and INCA 
     58    if [ $compoasis == n ] || [ $compnemo == n ] ; then 
     59        echo ; echo It is not possible to compile IPSLCM-reg. 
     60        echo Source code is missing 
     61        exit 
     62    else 
     63        echo "Compilation of IPSLCM-reg configuration (without INCA and DYNAMICO) will be done" 
     64        compnemo=y compoasis=y compdyna=n compinca=n complmdz=y comporch=y compxios=y 
     65        regular_latlon=y 
     66    fi 
    4667elif [ $subconfig == ICOLMDZORINCA ] ; then 
    4768    if [ $compinca == n ] || [ $compdyna == n ] ; then 
     
    5172    else 
    5273        echo Compilation of ICOLMDZORINCA configuration will be done 
     74        compnemo=n compoasis=n compdyna=y compinca=y complmdz=y comporch=y compxios=y 
    5375    fi   
    5476elif [ $subconfig == ICOLMDZOR ] ; then 
     
    5981    else 
    6082        echo Compilation of ICOLMDZOR configuration will be done 
     83        compnemo=n compoasis=n compdyna=y compinca=n complmdz=y comporch=y compxios=y 
    6184    fi 
    6285elif [ $subconfig == LMDZORINCA ] ; then 
     
    6689        exit 
    6790    else 
    68         regular_latlon=yes 
     91        regular_latlon=y 
    6992        echo Compilation of regular LMDZORINCA configuration for grid $resol_atm will be done  
     93        compnemo=n compoasis=n compdyna=n compinca=y complmdz=y comporch=y compxios=y 
    7094    fi   
    7195elif [ $subconfig == LMDZOR ] ; then 
    72     regular_latlon=yes 
    7396    # We always suppose that LMDZ and ORCHIDEE are extracted. No check needs to be done. 
     97    regular_latlon=y 
    7498    echo Compilation of regular LMDZOR configuration for grid $resol_atm will be done 
     99    compnemo=n compoasis=n compdyna=n compinca=n complmdz=y comporch=y compxios=y 
    75100else 
    76     echo ; echo The configuration $subconfig is not available 
    77     echo Choose between ICOLMDZORINCA ICOLMDZOR LMDZORINCA or LMDZOR  
    78     echo Exit now 
     101    echo ; echo "The configuration $subconfig is not available" 
     102    echo "Choose between ICOLMDZORINCA, ICOLMDZOR, LMDZORINCA, LMDZOR" 
     103    echo "               IPSLCM or IPSLCM-reg"  
     104    echo "Exit now" 
    79105    exit 
    80106fi 
     107echo compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna compinca=$compinca complmdz=y comporch=y compxios=y 
    81108echo ; 
    82109 
     110 
     111# Coherence test for variable regular_latlon which can be set as input argument 
     112if [ $regular_latlon == yes ] || [ $regular_latlon == y ] ; then 
     113        regular_laton=y 
     114elif [ $regular_latlon == no ] || [ $regular_latlon == n ] ; then 
     115        regular_laton=n 
     116else 
     117        echo "regular_latlon=$regular_latlon : This option is not possible." 
     118        echo "Compile using argument '-regular_latlon' no or '-regular_latlon yes'"  
     119        echo "Exit now" 
     120fi 
     121 
Note: See TracChangeset for help on using the changeset viewer.