Changeset 763


Ignore:
Timestamp:
10/28/09 17:06:17 (13 years ago)
Author:
sdipsl
Message:
  • Some evolution for orchidee.driver and orchidee.def
  • Very likely that many more will come
Location:
CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/orchidee.driver

    r700 r763  
    11#!/bin/ksh 
    22 
    3 #D- Driver du script pour ORCHIDEE_OL (off-line) 
     3#D- Driver du script pour ORCHIDEE 
     4 
     5function ORCHIDEE_sed 
     6{ 
     7    IGCM_debug_PushStack "ORCHIDEE_sed" 
     8     
     9    sed -e "s/^${1}\ *=.*/${1}= ${2}/" \ 
     10        orchidee.def > orchidee.def.tmp 
     11    RET=$? 
     12    echo "ORCHIDEE_sed : ${1} ${2}" 
     13    \mv orchidee.def.tmp orchidee.def 
     14     
     15    IGCM_debug_PopStack "ORCHIDEE_sed" 
     16    return $RET 
     17} 
    418 
    519#----------------------------------------------------------------- 
     
    822    IGCM_debug_PushStack "SRF_Initialize" 
    923 
    10     RESOL_SRF=$( echo $RESOL | awk "-Fx" '{print $2}' | awk "-F-" '{print $1}' ) 
    11  
    12     ##--Variables used by ORCHIDEE -- 
    13     PAT_WRI_STEP=$(     grep 'WRITE_STEP='   ${SUBMIT_DIR}/PARAM/orchidee.def ) 
     24    RESOL_SRF=ALL 
    1425 
    1526    IGCM_debug_PopStack "SRF_Initialize" 
     
    2132    IGCM_debug_PushStack "SRF_Update" 
    2233 
    23     (( SECH_WRI_STEP=PeriodLengthInDays * 86400 )) 
     34    typeset SECHIBA_WRITE_STEP 
     35 
     36    case ${config_SRF_WriteFrequency} in 
     37        *Y|*y)  
     38            WriteInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}" ) 
     39            PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     40            (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 
     41        *M|*m)  
     42            WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 
     43            case ${config_UserChoices_PeriodLength} in 
     44            *Y|*y) 
     45                PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 
     46                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12  )) 
     47                ;; 
     48            *M|*m) 
     49                PeriodLengthInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}" ) 
     50                (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths  * 86400 / PeriodLengthInMonths  )) 
     51                ;; 
     52            *) 
     53                (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 
     54                ;; 
     55            esac 
     56            ;; 
     57        5D|5d)  
     58            (( SECHIBA_WRITE_STEP = 5 * 86400 )) ;; 
     59        1D|1d)  
     60            (( SECHIBA_WRITE_STEP = 86400 )) ;; 
     61        *s) 
     62            WriteInSeconds=$( echo ${1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}" ) 
     63            (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 
     64        *)  
     65            IGCM_debug_Exit "SRF_Update " ${config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."  
     66            IGCM_debug_Verif_Exit ;; 
     67    esac 
     68 
     69    ORCHIDEE_sed WRITE_STEP ${SECHIBA_WRITE_STEP} 
     70 
     71##    if [ ${year} -eq 1950 ] ; then 
     72#       ORCHIDEE_sed SECHIBA_HISTFILE2 y 
     73#       ORCHIDEE_sed SECHIBA_HISTLEVEL2 10 
     74#       ORCHIDEE_sed WRITE_STEP2 86400.0 
     75##    fi 
    2476 
    2577    if ( [ ${CumulPeriod} -eq 1 ] && [ "${config_SRF_Restart}" = "n" ] ) ; then 
    26         sed -e "s/_start_sech_/default/" \ 
    27             -e "s/${PAT_WRI_STEP}/WRITE_STEP=${SECH_WRI_STEP}/" \ 
    28             orchidee.def > orchidee.def.tmp 
     78        ORCHIDEE_sed SECHIBA_reset_time y 
    2979    else 
    30         sed -e "s/_start_sech_/start_sech.nc/" \ 
    31             -e "s/${PAT_WRI_STEP}/WRITE_STEP=${SECH_WRI_STEP}/" \ 
    32             orchidee.def > orchidee.def.tmp 
     80        ORCHIDEE_sed SECHIBA_restart_in start_sech.nc.nc 
     81        ORCHIDEE_sed SECHIBA_reset_time y 
    3382    fi 
    34  
    35     IGCM_sys_Mv orchidee.def.tmp orchidee.def 
    3683 
    3784    #IGCM_sys_Cp ${RUN_DIR}/orchidee.def ${RUN_DIR}/run.def 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/PARAM/orchidee.def

    r396 r763  
    88# STOMATE_OK_DGVM is not set 
    99# STOMATE_WATCHOUT is not set 
    10 SECHIBA_restart_in=_start_sech_ 
     10SECHIBA_restart_in=default 
    1111SECHIBA_rest_out=sechiba_rest.nc 
    1212SECHIBA_reset_time=y 
    13 # SECHIBA_reset_time is not set 
     13# 
    1414OUTPUT_FILE=sechiba_out.nc 
    1515WRITE_STEP=2592000 
    1616SECHIBA_HISTLEVEL=5 
     17# 
     18SECHIBA_HISTFILE2 = FALSE 
     19SECHIBA_OUTPUT_FILE2 = sechiba_out_2.nc 
     20WRITE_STEP2 = 86400.0 
     21SECHIBA_HISTLEVEL2 = 1 
     22# 
    1723STOMATE_OUTPUT_FILE=stomate_history.nc 
    1824STOMATE_HIST_DT=10. 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/config.card

    r713 r763  
    1111#-- (<8 chars MAX for JobName) 
    1212JobName=CM5 
    13 LongName="SCRIPT_V1" 
     13LongName="IPSLCM5_v2 configuration" 
    1414TagName=IPSLCM5 
    1515#============================ 
     
    5050ATM= (lmdz, LMDZ4-dev) 
    5151SRF= (orchidee, ORCHIDEE_1_9_4) 
    52 OCE= (opa9, NEMO_v3_1 + revision 1340) 
     52OCE= (opa9, NEMO_v3_2_beta) 
    5353ICE= (lim2, LIM_2) 
    5454CPL= (oasis, OASIS3) 
Note: See TracChangeset for help on using the changeset viewer.