Ignore:
Timestamp:
12/02/11 19:17:07 (12 years ago)
Author:
sdipsl
Message:

Source driver from ${SUBMIT_DIR}/DRIVER/ if it exists ; otherwise back to default
Add yyyymm_m1, yyyymm_p1, month_m1, month_p1 and day as available global variables. Needed by LMDZ-REPROBUS
Add IGCM_date_GetYearMonthDay function
JG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r480 r522  
    5252        # Debug Print : 
    5353        IGCM_debug_Print 2 "Initialize following component library" 
    54         IGCM_debug_Print 2 ${SUBMIT_DIR}/COMP/${compname}.driver 
    55         IGCM_debug_Print 3 "With tag : ${comptagname}" 
    56         # Source component library 
    57         . ${SUBMIT_DIR}/COMP/${compname}.driver 
     54 
     55        # Source drivers in directory DRIVER if it exist 
     56        # else source them from directory COMP 
     57        if [ -d ${SUBMIT_DIR}/DRIVER ] ; then 
     58            IGCM_debug_Print 2 ${SUBMIT_DIR}/DRIVER/${compname}.driver 
     59            # Source component library 
     60            . ${SUBMIT_DIR}/DRIVER/${compname}.driver 
     61        else 
     62            IGCM_debug_Print 2 ${SUBMIT_DIR}/COMP/${compname}.driver 
     63            # Source component library 
     64            . ${SUBMIT_DIR}/COMP/${compname}.driver 
     65        fi 
     66        IGCM_debug_Print 3 "With tag : ${comptagname}" 
     67         
    5868 
    5969        # Debug Print 
Note: See TracChangeset for help on using the changeset viewer.