- Timestamp:
- 12/09/11 14:20:59 (13 years ago)
- Location:
- tags/libIGCM_v1_12
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tags/libIGCM_v1_12/libIGCM_config/libIGCM_config.ksh
r523 r528 572 572 573 573 #=================================== 574 function IGCM_config_SaveSourceModifications575 {576 IGCM_debug_PushStack "IGCM_config_SaveSourceModifications"577 #set -vx578 echo "In SaveSourceModifications."579 580 ExeOutDateMax=$1581 582 listVarEnv="MODIPSL,ExeOutDateMax,R_OUT_EXE,PREFIX,SUBMIT_DIR"583 IGCM_sys_RshMaster "export MODIPSL=${MODIPSL};\584 export ExeOutDateMax=${ExeOutDateMax};\585 export R_OUT_EXE=${R_OUT_EXE};\586 export PREFIX=${PREFIX};\587 export SUBMIT_DIR=${SUBMIT_DIR};\588 export listVarEnv=${listVarEnv};\589 Script_Output=out_SaveSourceModifications;\590 IGCM_sys_Qsub ${libIGCM}/SaveSourceModifications"591 592 echo "out SaveSourceModifications."593 594 IGCM_debug_PopStack "IGCM_config_SaveSourceModifications"595 }596 597 #===================================598 574 function IGCM_config_PeriodEnd 599 575 { … … 617 593 typeset LS_comp LS_bin ExeDate ExeCpuLog NextExeSize LastCompExeSize 618 594 typeset comp i 619 typeset ExeNameIn ExeNameOut UpdateExe ExeOutDate ExeOutDateMax595 typeset ExeNameIn ExeNameOut 620 596 621 597 #==================================# … … 643 619 NextExeSize="( " 644 620 (( i=0 )) 645 UpdateExe=false 646 (( ExeOutDateMax = 0 )) 621 647 622 for comp in ${config_ListOfComponents[*]} ; do 648 623 … … 687 662 fi 688 663 eval IGCM_sys_Put_Out ${ExeNameOut} ${R_OUT_EXE}/${PREFIX}_${ExeNameIn} rw 689 UpdateExe=true690 691 ExeOutDate=$( ls -l --full-time --time-style='+%Y%m%d%H%M%S' ${ExeNameOut} | gawk -F ' ' '{print $6}' )692 ExeOutDateMax=$(( ( $ExeOutDateMax > $ExeOutDate ) ? $ExeOutDateMax : $ExeOutDate ))693 664 fi 694 665 done 695 696 if ( ${UpdateExe} ) ; then697 echo "Launch SaveSourceModifications."698 IGCM_config_SaveSourceModifications ${ExeOutDateMax}699 fi700 666 701 667 NextExeSize=${NextExeSize}" )"
Note: See TracChangeset
for help on using the changeset viewer.