Changeset 894 for trunk/libIGCM/libIGCM_debug
- Timestamp:
- 07/08/13 19:10:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
r874 r894 75 75 #D- 76 76 function IGCM_debug_CallStack { 77 #echo78 #echo "!!!!!!!!!!!!!!!!!!!!!!!!!!"79 #echo "!! IGCM_debug_CallStack !!"80 #echo "!------------------------!"81 #echo82 77 if ( $DEBUG_debug ) ; then 83 78 # La pile d'appels est affichée de la plus vieille à la plus récente … … 193 188 # 194 189 if ( ${RandomError} ) ; then 195 if [ $((RANDOM%10000)) -le 0 ] ; then190 if [ $((RANDOM%10000)) -le 10 ] ; then 196 191 IGCM_debug_Print 1 "A random error has been triggered" 197 192 echo "RANDOM ERROR" >> ${StackFileLocation}/stack … … 337 332 IGCM_debug_PushStack "IGCM_debug_Exit" 338 333 echo "IGCM_debug_Exit : " "${@}" 339 #IGCM_debug_CallStack 334 echo 335 echo "!!!!!!!!!!!!!!!!!!!!!!!!!!" 336 echo "!! ERROR TRIGGERED !!" 337 echo "!! EXIT FLAG SET !!" 338 echo "!------------------------!" 339 echo 340 IGCM_debug_CallStack 340 341 ExitFlag=true 341 342 IGCM_debug_PopStack "IGCM_debug_Exit" … … 351 352 if [ X${TaskType} != Xchecking ] ; then 352 353 IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal" 353 echo "IGCM_debug_Verif_Exit : Something wrong happened." 354 echo "IGCM_debug_Verif_Exit : Something wrong happened previously." 355 echo "IGCM_debug_Verif_Exit : ERROR and EXIT keyword will help find out where." 354 356 echo " EXIT THE JOB." 355 357 echo
Note: See TracChangeset
for help on using the changeset viewer.