Changeset 358 for trunk/libIGCM
- Timestamp:
- 09/30/10 17:09:28 (14 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_TimeSeries_Checker
r357 r358 259 259 TimeSeries2D=false 260 260 TimeSeries3D=false 261 chunck=false 261 262 iLoop=${#ListDimension[*]} 262 263 j=0 … … 309 310 # 310 311 if [ $( eval echo \${${compname}_Post_${FILE}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then 311 IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}"312 #IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}" 312 313 #(( i=i+3 )) 313 314 continue … … 321 322 # Si on n'a pas de chunck, dans ce cas chunck_size=la durée de la simulation en années 322 323 YearsChunckLength=$( echo ${chunck_size} | sed -e "s/[yY]//" ) 323 if ( [ ${chunck} = false ] || [ X${YearsChunckLength} = XOFF ] ) ; then 324 YearsChunckLength=$(( YearEnd - YearBegin + 1 )) 325 fi 324 [ ${chunck} = false ] && YearsChunckLength=$(( YearEnd - YearBegin + 1 )) 326 325 327 326 NbYearsChunckLoop=$(( ( YearEnd - YearBegin + 1 ) / YearsChunckLength )) … … 368 367 369 368 echo 370 if ( [ ${chunck} = true ] && [ ${SuccessRate} -ne 100 ] && [ $( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} ) != OFF ]) ; then369 if ( [ ${chunck} = true ] && [ ${SuccessRate} -ne 100 ] ) ; then 371 370 ChunckCompletedFlag="" 372 371 CompletedFlag=${SavedCompletedFlag} -
trunk/libIGCM/AA_job
r335 r358 96 96 #-Q- sx9mercure #PBS -l elapstim_req=24:00:00 # limite en temps elapsed 97 97 #-Q- sx9mercure #PBS -A gen6178 # groupe obligatoire sur SX9 98 #-Q- sx9mercure #PBS -q para-sx9 # para-sx9 or prio-sx9 (for CMIP5 top priorities) ortest-sx9 (if elapsed<1h)98 #-Q- sx9mercure #PBS -q para-sx9 # para-sx9 or prio-sx9 (for CMIP5 top priorities), bckg-sx9 (run with free slot) and test-sx9 (if elapsed<1h) 99 99 #-Q- lxiv8 ###################### 100 100 #-Q- lxiv8 ## OBELIX LSCE ## -
trunk/libIGCM/libIGCM_sys/libIGCM_sys.ksh
r316 r358 16 16 # bypass specific internationalization (for awk) 17 17 export LC_ALL="C" 18 19 # Set default umask (umask is 0027 on some machines : CCRT machine at least) 20 umask 0022 18 21 19 22 # By default, all libIGCM_sys save functions will protect output datas (RUN execution mode) -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
r356 r358 974 974 fi 975 975 fi 976 # 977 # USUAL WAY 978 cp $1 $2 > out_rsync 2>&1 979 RET=$? 976 977 exist=false 978 if [ -f $2 ] ; then 979 IGCM_debug_Print 1 "$2 already exist" 980 dmget $2 981 exist=true 982 if [ ! X$( diff $1 $2 ) = X ] ; then 983 IGCM_debug_Print 2 "$1 and $2 are the same file, we skip the copy" 984 skip=true 985 else 986 IGCM_debug_Print 2 "$1 and $2 are not the same file, we force the copy" 987 skip=false 988 fi 989 fi 990 # 991 if ( [ X${exist} = Xtrue] && [ X${skip} = Xfalse ] ) ; then 992 IGCM_sys_Chmod u+w $2 993 fi 994 # USUAL WAY 995 if ( [ X${skip} = Xfalse ] ) ; then 996 cp $1 $2 > out_rsync 2>&1 997 RET=$? 998 if [ ${RET} -gt 0 ] ; then 999 echo "IGCM_sys_Put_Out : error." 1000 cat out_rsync 1001 IGCM_debug_Exit "IGCM_sys_Put_Out" 1002 else 1003 rm out_rsync 1004 fi 1005 fi 980 1006 981 1007 # #RSYNC WITH NETWORK RSH CALL … … 993 1019 # (( RET=RET+$? )) 994 1020 995 if [ ${RET} -gt 0 ] ; then 996 echo "IGCM_sys_Put_Out : error." 997 cat out_rsync 998 IGCM_debug_Exit "IGCM_sys_Put_Out" 999 else 1000 rm out_rsync 1001 fi 1021 1002 1022 else 1003 1023 ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack -
trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh
r356 r358 817 817 fi 818 818 fi 819 # 820 # USUAL WAY 821 \cp $1 $2 > out_rsync 2>&1 822 RET=$? 819 820 exist=false 821 if [ -f $2 ] ; then 822 IGCM_debug_Print 1 "$2 already exist" 823 dmget $2 824 exist=true 825 if [ ! X$( diff $1 $2 ) = X ] ; then 826 IGCM_debug_Print 2 "$1 and $2 are the same file, we skip the copy" 827 skip=true 828 else 829 IGCM_debug_Print 2 "$1 and $2 are not the same file, we force the copy" 830 skip=false 831 fi 832 fi 833 # 834 if ( [ X${exist} = Xtrue] && [ X${skip} = Xfalse ] ) ; then 835 IGCM_sys_Chmod u+w $2 836 fi 837 # USUAL WAY 838 if ( [ X${skip} = Xfalse ] ) ; then 839 \cp $1 $2 > out_rsync 2>&1 840 RET=$? 841 if [ ${RET} -gt 0 ] ; then 842 echo "IGCM_sys_Put_Out : error." 843 cat out_rsync 844 IGCM_debug_Exit "IGCM_sys_Put_Out" 845 else 846 rm out_rsync 847 fi 848 fi 823 849 824 850 # #RSYNC WITH NETWORK RSH CALL … … 836 862 # (( RET=RET+$? )) 837 863 838 if [ ${RET} -gt 0 ] ; then839 echo "IGCM_sys_Put_Out : error."840 cat out_rsync841 IGCM_debug_Exit "IGCM_sys_Put_Out"842 else843 rm out_rsync844 fi845 864 else 846 865 ( ${DEBUG_debug} ) && echo "DRYRUN mode = " $DRYRUN >> stack
Note: See TracChangeset
for help on using the changeset viewer.