Changeset 1650 for CONFIG/IPSLCM


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.

Location:
CONFIG/IPSLCM/IPSLCM5_v4/GENERAL
Files:
4 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 
  • CONFIG/IPSLCM/IPSLCM5_v4/GENERAL/DRIVER/oasis.driver

    r1622 r1650  
    11#!/bin/ksh 
    22#----------------------------------- 
    3 function LMDZ_sed 
    4 { 
    5     IGCM_debug_PushStack "LMDZ_sed" 
    6  
    7     sed -e "s/^${2}\ *=.*/${2}= ${3}/" ${1} > ${1}.tmp 
    8     RET=$? 
    9     echo "LMDZ_sed : ${1} ${2} ${3}" 
    10     \mv ${1}.tmp ${1} 
    11  
    12     IGCM_debug_PopStack "LMDZ_sed" 
    13     return $RET 
    14 } 
    15  
    16  
    173CPL_Initialize () 
    184{ 
     
    8369    fi 
    8470 
    85  
    86     ## Activate coupling to ocean model in LMDZ run.def file 
    87     LMDZ_sed run.def type_ocean couple 
    88  
    8971    ## Calculate lag for transfer of fields from atmosphere -> ocean. 
    9072    ## LAG_ATM="1day in sec"/day_step * iphysiq/nsplit_phys 
  • CONFIG/IPSLCM/IPSLCM5_v4/GENERAL/DRIVER/orchidee.driver

    r1622 r1650  
    1414     
    1515    IGCM_debug_PopStack "ORCHIDEE_sed" 
    16     return $RET 
    17 } 
    18  
    19 function LMDZ_sed 
    20 { 
    21     IGCM_debug_PushStack "LMDZ_sed" 
    22  
    23     sed -e "s/^${2}\ *=.*/${2}= ${3}/" ${1} > ${1}.tmp 
    24     RET=$? 
    25     echo "LMDZ_sed : ${1} ${2} ${3}" 
    26     \mv ${1}.tmp ${1} 
    27  
    28     IGCM_debug_PopStack "LMDZ_sed" 
    2916    return $RET 
    3017} 
     
    127114 
    128115 
    129 # Activate vegetation model in LMDZ run.def file 
    130     LMDZ_sed run.def VEGET y 
    131  
    132116    IGCM_debug_PopStack "SRF_Update" 
    133117} 
  • CONFIG/IPSLCM/IPSLCM5_v4/GENERAL/PARAM/run.def

    r1622 r1650  
    3535### 
    3636### type_ocean = force / slab  /couple 
    37 ### type_ocean is modified automatically to couple if oasis.driver is used 
    38 type_ocean=force 
     37### type_ocean is modified automatically by the lmdz.driver  
     38type_ocean=_AUTO_ 
    3939### version_ocean = nemo / opa8 
    4040version_ocean=nemo 
     
    4242cpl_current=y 
    4343### VEGET= y si ORCHIDEE, =n si bucket 
    44 ### VEGET is modified automatically to y if orchidee.driver is used  
    45 VEGET=n 
    46  
     44### VEGET is modified automatically by the lmdz.driver  
     45VEGET=_AUTO_ 
     46### Choice of tracers type_trac=lmdz/inca/repr 
     47### type_trac is set automatically by the lmdz.driver 
     48type_trac=_AUTO_ 
Note: See TracChangeset for help on using the changeset viewer.