Changeset 835
- Timestamp:
- 03/22/13 16:05:09 (11 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_RunChecker
r834 r835 41 41 fi 42 42 43 if ( [ ${NbOcc} -eq 0 ] && ( $ fg_path) ) ; then43 if ( [ ${NbOcc} -eq 0 ] && ( ${fg_path} ) ) ; then 44 44 set -A FileList $( ls ${ConfigPath}/Job_* ) 45 45 if [ X$FileList == X ] ; then … … 114 114 exit 115 115 fi 116 break;;116 ;; 117 117 *) 118 118 break ;; … … 184 184 Fatal) 185 185 Color=${ColFat} 186 break;;186 ;; 187 187 Completed) 188 188 Color=${ColCpl} 189 break;;189 ;; 190 190 Waiting|OnQueue) 191 191 Color=${ColAtt} 192 break;;192 ;; 193 193 *) 194 194 Color=${ColDef} 195 break;;195 ;; 196 196 esac 197 197 printf "${Color}%-11s${ColNon} | " $PeriodState … … 273 273 #======================================================================# 274 274 275 #D- Task type (computing ,post-processing or checking)275 #D- Task type (computing, post-processing or checking) 276 276 TaskType=checking 277 277 typeset -i Verbosity=0 … … 340 340 341 341 342 if ( ( ! $ fg_path) && [ $# -lt 1 ] ) ; then342 if ( ( ! ${fg_path} ) && [ $# -lt 1 ] ) ; then 343 343 $0 -h 344 344 exit … … 356 356 357 357 DEBUG_debug=false 358 DEBUG_sys=false 358 359 359 360 . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh … … 392 393 393 394 echo "Submit: >${SUBMIT_DIR}<" 394 cd $SUBMIT_DIR395 IGCM_sys_Cd $SUBMIT_DIR 395 396 396 397 … … 589 590 # ========================== 590 591 JobType=monitoring 591 if [ -d ${CWORK_DIR}/MONITORING ] ; then 592 LastDate=$( cdo showyear ${CWORK_DIR}/MONITORING/files/ATM_bils_global_ave.nc 2> /dev/null | \ 593 gawk '{ print $NF }' ) 592 IGCM_sys_TestDirArchive ${CWORK_DIR}/MONITORING 593 RC=$? 594 if [ $RC == 0 ] ; then 595 FileTmp=$( IGCM_sys_RshArchive "ls ${CWORK_DIR}/MONITORING/files/*.nc | head -n 1" ) 596 IGCM_sys_GetDate_Monitoring ${FileTmp} LastDate 594 597 eval ${JobType}_Date=${LastDate} 595 598 fi … … 598 601 # ===================== 599 602 JobType=atlas 600 if [ -d ${CWORK_DIR}/ATLAS ] ; then 601 set -A FileList $( ls ${CWORK_DIR}/ATLAS | tail -n ${NbHisto} ) 603 IGCM_sys_TestDirArchive ${CWORK_DIR}/ATLAS 604 RC=$? 605 if [ $RC == 0 ] ; then 606 set -A FileList $( IGCM_sys_RshArchive "ls ${CWORK_DIR}/ATLAS | tail -n ${NbHisto}" ) 602 607 603 608 if [ ${#FileList[*]} -gt ${NbLines} ] ; then -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_ada.ksh
r828 r835 1544 1544 1545 1545 #D-#================================================== 1546 #D-function IGCM_sys_GetDate_Monitoring 1547 #D-* Purpose: get the last year for which the monitoring has been computed 1548 #D-* Examples: 1549 #D- 1550 function IGCM_sys_GetDate_Monitoring { 1551 #set -vx 1552 IGCM_debug_PushStack "IGCM_sys_GetDate_Monitoring" $@ 1553 if ( $DEBUG_sys ) ; then 1554 echo "IGCM_sys_GetDate_Monitoring :" $@ 1555 fi 1556 1557 IGCM_sys_Cd /tmp 1558 IGCM_sys_Get ${1} . 1559 eval ${2}=$( cdo showyear $( basename ${1} ) 2> /dev/null | gawk '{ print $NF }' ) 1560 IGCM_sys_Cd - 1561 1562 #set +vx 1563 IGCM_debug_PopStack "IGCM_sys_GetDate_Monitoring" 1564 } 1565 1566 #D-#================================================== 1546 1567 #D-function IGCM_sys_Put_Dods 1547 1568 #D-* Purpose: Put $(ARCHIVE) files on DODS internet protocole. -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh
r834 r835 1694 1694 1695 1695 #D-#================================================== 1696 #D-function IGCM_sys_GetDate_Monitoring 1697 #D-* Purpose: get the last year for which the monitoring has been computed 1698 #D-* Examples: 1699 #D- 1700 function IGCM_sys_GetDate_Monitoring { 1701 IGCM_debug_PushStack "IGCM_sys_GetDate_Monitoring" $@ 1702 if ( $DEBUG_sys ) ; then 1703 echo "IGCM_sys_GetDate_Monitoring :" $@ 1704 fi 1705 1706 eval ${2}=$( cdo showyear ${1} 2> /dev/null | gawk '{ print $NF }' ) 1707 1708 IGCM_debug_PopStack "IGCM_sys_GetDate_Monitoring" 1709 } 1710 1711 #D-#================================================== 1696 1712 #D-function IGCM_sys_Dods_Rm 1697 1713 #D-* Purpose: DO NOTHING ! Put ${ARCHIVE} files on DODS internet protocole.
Note: See TracChangeset
for help on using the changeset viewer.