Ignore:
Timestamp:
11/20/23 11:47:44 (8 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.