- Timestamp:
- 10/01/14 12:16:07 (10 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_card/libIGCM_card.ksh
r931 r1077 14 14 #================================================== 15 15 # The documentation of this file can be automatically generated 16 # if you use the prefix #D- for comments to be extracted. 16 # if you use the prefix #D- for comments to be extracted. 17 17 # Extract with command: cat lib* | grep "^#D-" | cut -c "4-" 18 18 #================================================== 19 19 20 20 #D-#================================================================== 21 21 #D-libIGCM_card … … 29 29 #D-Option2= "Hello Mars" 30 30 #D- 31 #D-# My comments 31 #D-# My comments 32 32 #D-[Recipes] 33 #D-Cake= "file1.doc" 34 #D-Starter= "file2.doc" 33 #D-Cake= "file1.doc" 34 #D-Starter= "file2.doc" 35 35 #D- 36 36 #D-[ColorValues] 37 37 #D-Red= 120 38 #D-Blue= 230 39 #D-Green= 178 38 #D-Blue= 230 39 #D-Green= 178 40 40 #D- 41 41 #D-[Couples] … … 211 211 \rm ${tmpfile} 212 212 213 # The tmpfile uses now the real path of the card to be modified, 213 # The tmpfile uses now the real path of the card to be modified, 214 214 # not just a local tmpfile with PID. 215 215 tmpfile=$1_mutex_$$ … … 241 241 set +A tmpfiles -- $( ls $1_mutex_[0-9]* 2>/dev/null ) 242 242 ((isleep=0)) 243 while [ ${#tmpfiles[@]} -gt 0 ] ; do 243 while [ ${#tmpfiles[@]} -gt 0 ] ; do 244 244 echo "Conflict between two processes working on " $1 "!!!" ${tmpfiles[@]} 245 245 sleep 1 … … 294 294 function IGCM_card_Check 295 295 { 296 IGCM_debug_PushStack "IGCM_card_Check" 296 IGCM_debug_PushStack "IGCM_card_Check" 297 297 #--------------------- 298 298 if [ ! -n "${libIGCM}" ] ; then … … 314 314 sleep 2 315 315 316 if diff /tmp/IGCM_card_Test.$$.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then 316 if diff /tmp/IGCM_card_Test.$$.ref.failed ${libIGCM}/libIGCM_card/IGCM_card_Test.ref > /dev/null 2>&1 ; then 317 317 echo "Check libIGCM_card ...............................................[ OK ]" 318 318 rm -f /tmp/IGCM_card_Test.$$.ref.failed 319 else 319 else 320 320 echo "Check libIGCM_card ...........................................[ FAILED ]" 321 321 echo "--Error--> Execution of ${libIGCM}/libIGCM_card/IGCM_card_Test.ksh" … … 329 329 330 330 #--------------------- 331 IGCM_debug_PopStack "IGCM_card_Check" 332 } 331 IGCM_debug_PopStack "IGCM_card_Check" 332 } -
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r1076 r1077 131 131 132 132 #==================================================== 133 # Define REBUILD_DIR : where we store files needing rebuild process 133 # Define REBUILD_DIR : where we store files needing rebuild process 134 134 REBUILD_DIR=${R_BUFR}/REBUILD 135 135 if [ ! X${TaskType} = Xchecking ] ; then -
trunk/libIGCM/libIGCM_post/libIGCM_post.ksh
r1070 r1077 459 459 # ----------------------------------------------------------------------------------- 460 460 # Function IGCM_FlushPost called by pack_output.job has not been closed yet. Do it now 461 # Will submit Time Series OR Seasonal Average if needed 461 # Will submit Time Series OR Seasonal Average if needed 462 462 # ----------------------------------------------------------------------------------- 463 463 if [ -f ${R_BUFR}/FlushPost_${PeriodDateEnd}.ksh ] ; then … … 728 728 PeriodSlaveMonth=$( echo ${SlaveFrequency} | sed -e "s/[mM]//" ) 729 729 if ( [ ${PeriodSlaveMonth} -gt ${PeriodMasterMonth} ] || \ 730 [ $(( ${PeriodMasterMonth} % ${PeriodSlaveMonth} )) -ne 0 ] ) ; then 730 [ $(( ${PeriodMasterMonth} % ${PeriodSlaveMonth} )) -ne 0 ] ) ; then 731 731 IGCM_debug_Print 1 "${SlaveName} frequency ${SlaveFrequency} not compatbile with" 732 732 IGCM_debug_Print 1 "${MasterName} frequency : ${MasterFrequency}" … … 778 778 779 779 # Used by IGCM_post_Configure 780 # - from libIGCM (config_UserChoices_PeriodLength frequency * CumulPeriod) and 780 # - from libIGCM (config_UserChoices_PeriodLength frequency * CumulPeriod) and 781 781 # - post-processing compatible frequency (*Y, *M, *D, *y, *m, *d) 782 782 # --> turn on post-processing submission when their modulo is zero … … 841 841 PeriodSlaveMonth=$( echo ${SlaveFrequency} | sed -e "s/[mM]//" ) 842 842 if [ $(( ( ${CumulPeriod} * ${PeriodSlaveMonth} - ${PeriodOffset} ) % ${PeriodMasterMonth} )) -eq 0 ] ; then 843 if [ $(( ${CumulPeriod} * ${PeriodSlaveMonth} - ${PeriodOffset} )) -ne 0 ] ; then 843 if [ $(( ${CumulPeriod} * ${PeriodSlaveMonth} - ${PeriodOffset} )) -ne 0 ] ; then 844 844 eval ${post_freq}=true ; POST=true 845 845 [ X${3} = XNbPeriodPerFrequency ] && NbPeriodPerFrequency=$(( ${PeriodMasterMonth} / ${PeriodSlaveMonth} ))
Note: See TracChangeset
for help on using the changeset viewer.