Ignore:
Timestamp:
02/02/12 19:32:14 (12 years ago)
Author:
jgipsl
Message:

IPSLCM5_v4 :
Now lmdz.driver tests which components are set in ListOfComponents? in config.card and lmdz.driver activates corresponding parameters in run.def file.
This configuration can no longer run with libIGCM_v1_12. libIGCM/trunk from rev 541 or later is needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5_v4/GENERAL/DRIVER/lmdz.driver

    r1649 r1650  
    136136               if [ "${config_UserChoices_CalendarType}" != "360d" ] ; then 
    137137                  echo Do not consider following warning if your running create_etat0_limit : 
    138                   echo WARNGING !!! For lmdz : calendartype in config.card. PeriodLength=1Y allowed only for CalendarType=360d  
     138                  echo WARNING !!! For lmdz : calendartype in config.card. PeriodLength=1Y allowed only for CalendarType=360d  
    139139               fi 
    140140               ;; 
     
    318318 
    319319 
     320    ## Determine from the variable ListOfComponents in config.card coupling to external models  
     321    ## and set corresponding parameters in run.def 
     322    echo ListOfComponents now running : ${config_ListOfComponents[*]} 
     323 
     324    if [ X${config_ListOfComponents_SRF} = Xorchidee ] ; then 
     325        echo "Activate ORCHIDEE, set VEGET=y in run.def" 
     326        LMDZ_sed run.def VEGET y 
     327    else 
     328        echo "No ORCHIDEE, set VEGET=n in run.def" 
     329        LMDZ_sed run.def VEGET n 
     330    fi 
     331 
     332    if [ X${config_ListOfComponents_CPL} = Xoasis ] ; then 
     333        echo "Activate coupling to ocean, set type_ocean=couple in run.def" 
     334        LMDZ_sed run.def type_ocean couple 
     335    else 
     336        echo "LMDZ is running in forced mode without ocean model, set type_ocean=force in run.def" 
     337        LMDZ_sed run.def type_ocean force 
     338    fi 
     339 
     340    if [ X${config_ListOfComponents_CHM} = Xinca ] ; then 
     341        echo "Activate coupling to INCA, set type_trac=inca in run.def" 
     342        LMDZ_sed run.def type_trac=inca 
     343    elif [ X${config_ListOfComponents_CHM} = Xreprobus ] ; then 
     344        echo "Activate coupling to REPROBUS, set type_trac=repr in run.def" 
     345        LMDZ_sed run.def type_trac=repr 
     346    else 
     347        echo "No coupling to chemistry model, set type_trac=lmdz in run.def" 
     348        LMDZ_sed run.def type_trac=lmdz 
     349    fi 
     350 
     351 
    320352    # guide.def : Activate nudging if ok_guide set in lmdz.card 
    321353    if [ ! X${lmdz_UserChoices_ok_guide} = X ] ; then 
Note: See TracChangeset for help on using the changeset viewer.