Changeset 6727 for CONFIG/UNIFORM


Ignore:
Timestamp:
01/18/24 17:30:27 (5 months ago)
Author:
jgipsl
Message:

Add possiblity to compile only ORCHIDEE offline configuration

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

Legend:

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

    r6725 r6727  
    579579 
    580580## 2.10 Compile LMDZ for regular latlon configuration 
    581 if [ $regular_latlon = y ] ; then 
     581if [ $regular_latlon = y ] && [ $complmdz = y ] ; then 
    582582 
    583583    cd $modipsl/modeles/LMDZ 
  • CONFIG/UNIFORM/v7/IPSLCM7/define_config.sh

    r6677 r6727  
    3838fi 
    3939 
     40if [ -d ../../modeles/LMDZ ] ; then 
     41    complmdz=y 
     42else 
     43    complmdz=n 
     44fi 
     45 
    4046 
    4147 
     
    4652elif [ $subconfig == IPSLCM ] || [ $subconfig == IPSLCM-ico ] ; then 
    4753    # Full coupled model currently without INCA 
    48     if [ $compdyna == n ] || [ $compoasis == n ] || [ $compnemo == n ] ; then 
     54    if [ $compdyna == n ] || [ $compoasis == n ] || [ $compnemo == n ] || [ $complmdz == n ] ; then 
    4955        echo ; echo It is not possible to compile IPSLCM. 
    5056        echo Source code is missing 
     
    5662elif [ $subconfig == IPSLCM-reg ] ; then 
    5763    # Coupled model without DYNAMICO and INCA 
    58     if [ $compoasis == n ] || [ $compnemo == n ] ; then 
     64    if [ $compoasis == n ] || [ $compnemo == n ] || [ $complmdz == n ] ; then 
    5965        echo ; echo It is not possible to compile IPSLCM-reg. 
    6066        echo Source code is missing 
     
    6672    fi 
    6773elif [ $subconfig == ICOLMDZORINCA ] ; then 
    68     if [ $compinca == n ] || [ $compdyna == n ] ; then 
     74    if [ $compinca == n ] || [ $compdyna == n ] || [ $complmdz == n ] ; then 
    6975        echo ; echo It is not possible to compile ICOLMDZORINCA. 
    7076        echo INCA or DYNAMICO source code is missing 
     
    7581    fi   
    7682elif [ $subconfig == ICOLMDZOR ] ; then 
    77     if [ $compdyna == n ] ; then 
     83    if [ $compdyna == n ] || [ $complmdz == n ] ; then 
    7884        echo ; echo It is not possible to compile ICOLMDZOR 
    7985        echo DYNAMICO source code is missing 
     
    8490    fi 
    8591elif [ $subconfig == LMDZORINCA ] ; then 
    86     if [ $compinca == n ] ; then 
     92    if [ $compinca == n ] || [ $complmdz == n ] ; then 
    8793        echo ;  echo It is not possible to compile LMDZORINCA. 
    88         echo INCA source code is missing 
     94        echo INCA or LMDZ source code is missing 
    8995        exit 
    9096    else 
     
    94100    fi   
    95101elif [ $subconfig == LMDZOR ] ; then 
    96     # We always suppose that LMDZ and ORCHIDEE are extracted. No check needs to be done. 
    97     regular_latlon=y 
    98     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 
     102   if [ $complmdz == n ] ; then 
     103        echo ;  echo It is not possible to compile LMDZOR. 
     104        echo LMDZ source code is missing 
     105        exit 
     106    else 
     107      regular_latlon=y 
     108      echo Compilation of regular LMDZOR configuration for grid $resol_atm will be done 
     109      compnemo=n compoasis=n compdyna=n compinca=n complmdz=y comporch=y compxios=y 
     110   fi 
     111elif [ $subconfig == ORCHIDEE_OL ] ; then 
     112    # We always suppose ORCHIDEE is extracted. No check needs to be done. 
     113    regular_latlon=n 
     114    echo Compilation of ORCHIDEE offline configuration will be done 
     115    compnemo=n compoasis=n compdyna=n compinca=n complmdz=n comporch=y compxios=y 
    100116else 
    101117    echo ; echo "The configuration $subconfig is not available" 
     
    105121    exit 
    106122fi 
    107 echo compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna compinca=$compinca complmdz=y comporch=y compxios=y 
     123echo compnemo=$compnemo compoasis=$compoasis compdyna=$compdyna compinca=$compinca complmdz=$complmdz comporch=y compxios=y 
    108124echo ; 
    109125 
Note: See TracChangeset for help on using the changeset viewer.