Changeset 7364 for branches/ORCHIDEE_2_2


Ignore:
Timestamp:
2021-11-25T14:28:21+01:00 (3 years ago)
Author:
josefine.ghattas
Message:

Correction for new driver. By Xiaoni Wang-Faivre

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ORCHIDEE_2_2/ORCHIDEE_OL/OOL_SEC_STO_FG3nd/COMP/orchideedriver.driver

    r7253 r7364  
    2020    IGCM_comp_modifyDefFile nonblocker run.def END_DATE ${HumanDateEnd}" 24:00:00" 
    2121     
     22    # Set TIME_LENGTH in run.def depending on PeriodLenght in config.card 
     23    case ${config_UserChoices_PeriodLength} in 
     24        *M|*m|*D|*d) 
     25            IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${PeriodLengthInDays}D 
     26            ;; 
     27        *s|*Y) 
     28            IGCM_comp_modifyDefFile nonblocker run.def TIME_LENGTH ${config_UserChoices_PeriodLength} 
     29            ;; 
     30        *) 
     31            IGCM_debug_Exit "OOL_Update " ${config_UserChoices_PeriodLength} " invalid PeriodLength in config.card : choose between 1Y, 1M, 5D, 1D." 
     32            IGCM_debug_Verif_Exit 
     33    esac 
     34     
     35 
     36    # Set TIME_SKIP only if starting without restart file 
     37    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then 
     38        # Calculate the TIME_SKIP as difference between the start date and 1th of January the same year 
     39        IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP $( IGCM_date_DaysBetweenGregorianDate ${DateBegin} ${year}0101 )D 
     40    else 
     41        # Here using restart file, set TIME_SKIP=0 
     42        IGCM_comp_modifyDefFile nonblocker run.def TIME_SKIP 0D 
     43    fi 
     44 
     45 
     46 
    2247    # Set RESTART_FILEIN in run.def 
    2348    if ( ${FirstInitialize} && [ "${config_OOL_Restart}" = "n" ] ) ; then 
Note: See TracChangeset for help on using the changeset viewer.