Ignore:
Timestamp:
02/26/10 14:54:14 (14 years ago)
Author:
mmaipsl
Message:

Add year_m1 and year_p1 : respectivly year minus and plus 1.
Use new Put_Out option for Script_Output_... and run.card saves :
no protection for thoses files on R_SAVE directory.

File:
1 edited

Legend:

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

    r224 r227  
    311311 
    312312        IGCM_date_GetYearMonth $DateBegin year month 
     313        $(( year_m1 = year - 1 )) 
     314        $(( year_p1 = year + 1 ))        
    313315        IGCM_config_Analyse_PeriodLength 
    314316 
     
    368370            IGCM_debug_Print 1 "Try to save previous ksh job output" 
    369371            IGCM_sys_Cd ${SUBMIT_DIR}/ 
    370             IGCM_sys_Put_Out ${Last_Script_Output_Name} ${R_OUT_KSH}/${Last_Script_Output_Name}.$$ 
    371             [ -f   ${Last_Script_Output_Name} ] &&  IGCM_sys_Chmod 644 ${Last_Script_Output_Name} 
    372             IGCM_sys_Put_Out ${SUBMIT_DIR}/run.card ${R_OUT_KSH}/${Last_run_card}.$$ 
    373             [ -f   run.card ] && IGCM_sys_Chmod 644 ${SUBMIT_DIR}/run.card 
     372            IGCM_sys_Put_Out ${Last_Script_Output_Name} ${R_OUT_KSH}/${Last_Script_Output_Name}.$$ rw 
     373            IGCM_sys_Put_Out ${SUBMIT_DIR}/run.card ${R_OUT_KSH}/${Last_run_card}.$$ rw 
    374374            IGCM_sys_Cd ${RUN_DIR} 
    375375        else 
     
    378378 
    379379        IGCM_date_GetYearMonth $PeriodDateBegin year month 
     380        $(( year_m1 = year - 1 )) 
     381        $(( year_p1 = year + 1 ))        
    380382        IGCM_config_Analyse_PeriodLength 
    381383 
     
    451453    eval FileToBeDeleted[${#FileToBeDeleted[@]}]="${Exe_Output}" 
    452454 
    453     IGCM_sys_RshArchive "chmod 644 ${R_OUT_KSH}/run.card" 
    454     IGCM_sys_Put_Out ${SUBMIT_DIR}/run.card ${R_OUT_KSH}/run.card 
    455     IGCM_sys_Chmod 644 ${SUBMIT_DIR}/run.card 
     455    IGCM_sys_Put_Out ${SUBMIT_DIR}/run.card ${R_OUT_KSH}/run.card rw 
    456456     
    457457    typeset LS_comp LS_bin ExeDate ExeCpuLog ExeSize NextExeSize LastCompExeSize 
     
    525525                eval FileToBeDeleted[${#FileToBeDeleted[@]}]=${ExeNameOut} 
    526526            fi 
    527             eval IGCM_sys_Put_Out ${ExeNameOut} ${R_OUT_EXE}/${PREFIX}_${ExeNameIn} 
    528             IGCM_sys_Chmod u+xw ${ExeNameOut} 
     527            eval IGCM_sys_Put_Out ${ExeNameOut} ${R_OUT_EXE}/${PREFIX}_${ExeNameIn} rw 
    529528        fi 
    530529    done 
     
    630629    PeriodDateBegin=$( IGCM_date_AddDaysToGregorianDate ${PeriodDateEnd} 1 ) 
    631630    IGCM_date_GetYearMonth $PeriodDateBegin year month 
     631    $(( year_m1 = year - 1 )) 
     632    $(( year_p1 = year + 1 ))    
    632633 
    633634    IGCM_config_Analyse_PeriodLength 
Note: See TracChangeset for help on using the changeset viewer.