Changeset 541
- Timestamp:
- 12/17/11 00:28:56 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r529 r541 90 90 91 91 IGCM_card_DefineArrayFromSection ${SUBMIT_DIR}/config.card ListOfComponents 92 for comp in ${config_ListOfComponents[*]} ; do 93 IGCM_card_DefineArrayFromOption ${SUBMIT_DIR}/config.card ListOfComponents ${comp} 94 done 92 95 93 96 echo … … 575 578 { 576 579 IGCM_debug_PushStack "IGCM_config_SaveSourceModifications" 577 #set -vx 578 echo "In SaveSourceModifications." 579 580 581 typeset ExeOutDateMax listVarEnv 580 582 ExeOutDateMax=$1 581 583 … … 591 593 IGCM_sys_Qsub ${libIGCM}/SaveSourceModifications.job ${ExeOutDateMax} ${R_OUT_EXE} ${PREFIX} ${SUBMIT_DIR}" 592 594 593 echo "out SaveSourceModifications."594 595 595 IGCM_debug_PopStack "IGCM_config_SaveSourceModifications" 596 596 } … … 618 618 typeset LS_comp LS_bin ExeDate ExeCpuLog NextExeSize LastCompExeSize 619 619 typeset comp i 620 typeset ExeNameIn ExeNameOut UpdateExe Exe OutDate ExeOutDateMax620 typeset ExeNameIn ExeNameOut UpdateExe ExeSecDateMax 621 621 622 622 #==================================# … … 645 645 (( i=0 )) 646 646 UpdateExe=false 647 (( Exe OutDateMax = 0 ))647 (( ExeSecDateMax = 0 )) 648 648 for comp in ${config_ListOfComponents[*]} ; do 649 649 … … 690 690 UpdateExe=true 691 691 692 ExeOutDate=$( ls -l --full-time --time-style='+%Y%m%d%H%M%S' ${ExeNameOut} | gawk -F ' ' '{print $6}' ) 693 ExeOutDateMax=$(( ( $ExeOutDateMax > $ExeOutDate ) ? $ExeOutDateMax : $ExeOutDate )) 692 IGCM_sys_GetDate_FichWork ${LS_bin} ExeSecDate 693 if [ $ExeSecDateMax -lt $ExeSecDate ] ; then 694 ExeSecDateMax=$ExeSecDate 695 fi 694 696 fi 695 697 done … … 697 699 if ( ${UpdateExe} ) ; then 698 700 echo "Launch SaveSourceModifications." 699 IGCM_config_SaveSourceModifications ${Exe OutDateMax}701 IGCM_config_SaveSourceModifications ${ExeSecDateMax} 700 702 fi 701 703
Note: See TracChangeset
for help on using the changeset viewer.