Index: trunk/libIGCM/AA_SE_Checker
===================================================================
--- trunk/libIGCM/AA_SE_Checker	(revision 408)
+++ trunk/libIGCM/AA_SE_Checker	(revision 409)
@@ -22,7 +22,4 @@
 # Attention : Ã  changer si la machine de post-traitement n'est pas la frontale du serveur de calcul !
 #             voir prÃ©cence de la variable MirrorlibIGCM dans votre couche systÃšme.
-
-# Name Space of this experience 
-SpaceName=${SpaceName:=PROD}
 
 # Expericence class of the run
Index: trunk/libIGCM/AA_TimeSeries_Checker
===================================================================
--- trunk/libIGCM/AA_TimeSeries_Checker	(revision 408)
+++ trunk/libIGCM/AA_TimeSeries_Checker	(revision 409)
@@ -22,7 +22,4 @@
 # Attention : Ã  changer si la machine de post-traitement n'est pas la frontale du serveur de calcul !
 #             voir prÃ©cence de la variable MirrorlibIGCM dans votre couche systÃšme.
-
-# Name Space of this experience
-SpaceName=${SpaceName:=PROD}
 
 # Expericence class of the run
@@ -453,5 +450,4 @@
 unset CompToRead
 unset FlagToRead
-unset NameToRead
 
 if [ X${Launch2D} = Xtrue ] ; then
Index: trunk/libIGCM/AA_create_multi_se
===================================================================
--- trunk/libIGCM/AA_create_multi_se	(revision 408)
+++ trunk/libIGCM/AA_create_multi_se	(revision 409)
@@ -384,5 +384,4 @@
 	#
 	IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH}
-	eval ExitFlag=false
 	IGCM_debug_Verif_Exit_Post
 	# Search of common list of variables to be treated
@@ -406,6 +405,4 @@
 	done
 	IGCM_sys_Rm ${liste_file_se_tmp[*]}
-	eval ExitFlag=false
-	IGCM_debug_Verif_Exit_Post
 	#
 
@@ -449,6 +446,4 @@
 	IGCM_sys_Rm ${RESULT_MULTI_SE}
 	#
-	eval ExitFlag=false
-	IGCM_debug_Verif_Exit_Post
     done
 done
Index: trunk/libIGCM/AA_create_se
===================================================================
--- trunk/libIGCM/AA_create_se	(revision 408)
+++ trunk/libIGCM/AA_create_se	(revision 409)
@@ -396,5 +396,4 @@
 	  #
 	  IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH}
-	  eval ExitFlag=false
 	  IGCM_debug_Verif_Exit_Post
 	  
@@ -430,6 +429,4 @@
 	  done
 	  IGCM_sys_Rm ${liste_file_se_tmp[*]}
-	  eval ExitFlag=false
-	  IGCM_debug_Verif_Exit_Post
 	  ;;
 	# For Monthly simulation :
@@ -462,5 +459,4 @@
 	      #
 	      IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH}
-	      eval ExitFlag=false
 	      IGCM_debug_Verif_Exit_Post
 	      
@@ -488,6 +484,4 @@
 
 	      IGCM_sys_Rm ${liste_file_se_tmp[*]}
-	      eval ExitFlag=false
-	      IGCM_debug_Verif_Exit_Post
 	  done
 	  ;;
@@ -531,5 +525,4 @@
 	      #
 	      IGCM_sys_Get /l liste_file_se[*] ${RUN_DIR_PATH}
-	      eval ExitFlag=false
 	      IGCM_debug_Verif_Exit_Post
 	      
@@ -556,6 +549,4 @@
 	      IGCM_sys_ncra -O -v ${list_var_final_ncra} ${liste_file_se_tmp[*]} ${OUT_SE[${nb}]}
 	      IGCM_sys_Rm ${liste_file_se_tmp[*]}
-	      eval ExitFlag=false
-	      IGCM_debug_Verif_Exit_Post
 	  done
 	  ;;
@@ -605,6 +596,4 @@
 	IGCM_sys_Rm ${RESULT_SE}
 	#
-	eval ExitFlag=false
-	IGCM_debug_Verif_Exit_Post
     done
 done
Index: trunk/libIGCM/AA_create_ts
===================================================================
--- trunk/libIGCM/AA_create_ts	(revision 408)
+++ trunk/libIGCM/AA_create_ts	(revision 409)
@@ -32,5 +32,5 @@
 #-Q- sx8brodie # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.)
 #-Q- sx8brodie # @ notification = error
-#-Q- sx8brodie # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $CompletedFlag ; $TsTask ; $CompToRead ; $FlagToRead ; $NameToRead ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; $MASTER
+#-Q- sx8brodie # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $CompletedFlag ; $TsTask ; $CompToRead ; $FlagToRead ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; $MASTER
 #-Q- sx8brodie # @ queue
 #-Q- aix6 #!/bin/ksh
@@ -48,5 +48,5 @@
 #-Q- aix6 # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.)
 #-Q- aix6 # @ notification = error
-#-Q- aix6 # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $DateBegin ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $CompletedFlag ; $TsTask ; $CompToRead ; $FlagToRead ; $NameToRead ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; $MASTER
+#-Q- aix6 # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $DateBegin ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $CompletedFlag ; $TsTask ; $CompToRead ; $FlagToRead ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; $MASTER
 #-Q- aix6 # @ queue
 #-Q- ulam #!/bin/ksh
@@ -64,5 +64,5 @@
 #-Q- ulam # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.)
 #-Q- ulam # @ notification = error
-#-Q- ulam # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $DateBegin ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $CompletedFlag ; $TsTask ; $CompToRead ; $FlagToRead ; $NameToRead ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; $MASTER
+#-Q- ulam # @ environment  = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $REBUILD_DIR ; $RebuildFromArchive ; $POST_DIR ; $MASTER ; $RebuildFrequency ; $DateBegin ; $PeriodDateBegin ; $PeriodDateEnd ; $NbRebuildDir ; $StandAlone ; $CompletedFlag ; $TsTask ; $CompToRead ; $FlagToRead ; $RESOL_ATM ; $RESOL_OCE ; $RESOL_ICE ; $RESOL_MBG ; $RESOL_SRF ; $RESOL_SBG ; $MASTER
 #-Q- ulam # @ queue
 #-Q- sx8mercure #!/bin/ksh
@@ -649,4 +649,7 @@
 	if [ X${file} != X${NULL_STR} ] ; then
 	    IGCM_sys_Get /l liste_file[*] ${RUN_DIR_PATH}/${comp}
+	    # Even if some files are missing we tried to continue
+	    # Either ListVar in compname.card are asked nut not present in original history file
+	    # Either a previous TS task failed
 	    ExitFlag=false
 	    IGCM_debug_Verif_Exit_Post
@@ -820,5 +823,4 @@
 	    # Get selected files
 	    IGCM_sys_Get /l liste_file[*] ${RUN_DIR_PATH}/${comp}
-	    ExitFlag=false
 	    IGCM_debug_Verif_Exit_Post
 
@@ -829,4 +831,5 @@
 			for Patch in $( eval echo \${LISTE_PATCHES_${file}[*]} ); do
 			    IGCM_${Patch} ${file_t}
+			    IGCM_debug_Verif_Exit_Post
 			done
 		    done
@@ -884,5 +887,5 @@
 			IGCM_sys_ncks -Oh -x -v ${var} ${file_out} ${file_out_YE%%.nc}_tmp1.nc
 			# This will remove the time axis because cdo rewrites severely with only considered useful variables
-			IGCM_sys_cdo -mulc,1 ${file_out_YE%%.nc}_tmp1.nc ${file_out_YE%%.nc}_tmp2.nc > /dev/null 2>&1
+			IGCM_sys_cdo -mulc,1 ${file_out_YE%%.nc}_tmp1.nc ${file_out_YE%%.nc}_tmp2.nc
 			if [ $? -eq 0 ] ; then
 				# Now append all ancillary variables if previous cdo operator ok
@@ -902,12 +905,8 @@
 	        fi
 		#
-		ExitFlag=false
-		IGCM_debug_Verif_Exit_Post
 	    done     # for var in ${liste_var} ; do
 	    IGCM_sys_Rm ${liste_file_tmp[*]}
 	done         # for file in ${liste_file_brut} do
     done             # for comp in ${config_ListOfComponents[*]} ; do
-    ExitFlag=false
-    IGCM_debug_Verif_Exit_Post
     # GO AHEAD IN DEEPEST LOOP
     (( CURRENT_LOOP = CURRENT_LOOP + 1 ))
Index: trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh
===================================================================
--- trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh	(revision 409)
@@ -318,4 +318,7 @@
            [ ${defVector[2]} -lt 0 ] ) ) ; then
 
+	# Save Smooth Min and Max. Needed to call IGCM_sys_Get when appropriate
+	SmoothMin=${defVector[0]}
+	SmoothMax=${defVector[2]}
         # Test modulo
         ModValue=$( expr \( ${2} - ${defVector[0]} \) % ${defVector[1]} )
@@ -382,7 +385,6 @@
 		IGCM_debug_Print 3 "  ${file_in} ${SmoothDef}"
 		eval ret=$( IGCM_SmoothModulo ${SmoothDef} ${CumulPeriod} )
-		if ( [ X${ret} = Xtrue ] || [ ${Period} -eq 1 ] ) ; then
+		if ( [ X${ret} = Xtrue ] || ( [ ${Period} -eq 1 ] && [ ${CumulPeriod} -ge ${SmoothMin} ] && [ ${CumulPeriod} -le ${SmoothMax} ) ) ; then
 		    IGCM_sys_Get ${file_in} ${file_out}
-
 		    #IGCM_comp_PrepareDeletedFiles ${file_in} ${file_out}
 		fi
@@ -929,5 +931,5 @@
 			if [ $DRYRUN -le 1 ]; then
 			    echo "IGCM_sys_rebuild ${file_in} ${generic_file_name}_*.nc   " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
-			    echo "IGCM_debug_Verif_Exit                                   " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
+			    echo "IGCM_debug_Verif_Exit_Post                              " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 			fi
 			#
@@ -938,4 +940,5 @@
 				    echo ". ${libIGCM_POST}/libIGCM_post/IGCM_${Patch}.ksh" >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 				    echo "IGCM_${Patch} ${file_in}                        " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
+				    echo "IGCM_debug_Verif_Exit_Post                      " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 				done
 			    fi
@@ -944,5 +947,5 @@
 			if [ $DRYRUN -le 1 ]; then
 			    echo "IGCM_sys_Put_Out ${file_in} ${file_out}                 " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
-			    echo "IGCM_debug_Verif_Exit                                   " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
+			    echo "IGCM_debug_Verif_Exit_Post                              " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 			    echo "IGCM_sys_Rm ${generic_file_name}_*.nc                   " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 			fi
@@ -978,8 +981,9 @@
 				    echo ". ${libIGCM_POST}/libIGCM_post/IGCM_${Patch}.ksh    " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 				    echo "IGCM_${Patch} ${file_in}                            " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
+				    echo "IGCM_debug_Verif_Exit_Post                          " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 				done
 			        #
 				echo "IGCM_sys_Put_Out ${file_in} ${file_out}                 " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
-				echo "IGCM_debug_Verif_Exit                                   " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
+				echo "IGCM_debug_Verif_Exit_Post                              " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 		                #
 			    fi
Index: trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh
===================================================================
--- trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh	(revision 409)
@@ -196,4 +196,5 @@
 function IGCM_debug_Verif_Exit {
     if ( ${ExitFlag} ) ; then
+	# Plan to send an email here with IGCM_sys_SendMail
 	IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal"
 	echo "IGCM_debug_Verif_Exit : Something wrong append."
@@ -218,9 +219,20 @@
     if ( ${ExitFlag} ) ; then
 	echo "IGCM_debug_Verif_Exit_Post : Something wrong append."
-	#echo "                        EXIT THE JOB."
-	echo "         BUT WE DO NOT EXIT THE JOB."
-	echo
-	date
-	#exit 1
+	# If SpaceName is PROD then we stop if post_processing fails
+	# Plan to send an email here with IGCM_sys_SendMail
+	if [ X${config_UserChoices_SpaceName} = XPROD ] ; then
+	    echo "                        EXIT THE JOB."
+	    echo
+	    if ( $DEBUG_debug ) ; then
+		IGCM_sys_Cp stack ${SUBMIT_DIR}/stack_error
+		echo
+	    fi
+	    date
+	    exit 1
+	else
+	    echo "         BUT WE DO NOT EXIT THE JOB."
+	    echo
+	    date
+	fi
     fi
 }
Index: trunk/libIGCM/libIGCM_post/libIGCM_post.ksh
===================================================================
--- trunk/libIGCM/libIGCM_post/libIGCM_post.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_post/libIGCM_post.ksh	(revision 409)
@@ -121,5 +121,5 @@
 
 
-        listVarEnv="DEBUG_debug,MODIPSL,libIGCM,libIGCM_SX,SUBMIT_DIR,POST_DIR,MASTER,RebuildFrequency,DateBegin,PeriodDateEnd,StandAlone,CompletedFlag,TsTask,CompToRead,FlagToRead,NameToRead,RESOL_ATM,RESOL_OCE,RESOL_ICE,RESOL_MBG,RESOL_SRF,RESOL_SBG"
+        listVarEnv="DEBUG_debug,MODIPSL,libIGCM,libIGCM_SX,SUBMIT_DIR,POST_DIR,MASTER,RebuildFrequency,DateBegin,PeriodDateEnd,StandAlone,CompletedFlag,TsTask,CompToRead,FlagToRead,RESOL_ATM,RESOL_OCE,RESOL_ICE,RESOL_MBG,RESOL_SRF,RESOL_SBG"
 	#
 	jLoop=${#ListDimension[*]}
@@ -132,4 +132,6 @@
 		IGCM_debug_Print 2 "TIME SERIES POST-PROCESSING ${Dimension} ACTIVATED :"
 		echo
+		unset CompToRead
+		unset FlagToRead
                 #
 		if [ X${Dimension} = X ] ; then
@@ -255,5 +257,4 @@
 			    echo "export CompToRead=${CompToRead}              " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 			    echo "export FlagToRead=${FlagToRead}              " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
-			    echo "export NameToRead=${NameToRead}              " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 			    echo "export RESOL_ATM=${RESOL_ATM}                " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
 			    echo "export RESOL_OCE=${RESOL_OCE}                " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh
@@ -287,5 +288,4 @@
                         export CompToRead=${CompToRead}
                         export FlagToRead=${FlagToRead}
-                        export NameToRead=${NameToRead}
                         export RESOL_ATM=${RESOL_ATM}
                         export RESOL_OCE=${RESOL_OCE}
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_brodie.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_brodie.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_brodie.ksh	(revision 409)
@@ -177,5 +177,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh	(revision 409)
@@ -222,5 +222,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
@@ -1318,5 +1318,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncap2 : erreur ${@}."
-#       IGCM_debug_Exit "ncap2"
+       IGCM_debug_Exit "ncap2"
     fi
 
@@ -1332,5 +1332,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncatted : erreur ${@}."
-#       IGCM_debug_Exit "ncatted"
+       IGCM_debug_Exit "ncatted"
     fi
 
@@ -1346,5 +1346,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncbo : erreur ${@}."
-#       IGCM_debug_Exit "ncbo"
+       IGCM_debug_Exit "ncbo"
     fi
 
@@ -1360,5 +1360,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncdiff : erreur ${@}."
-#       IGCM_debug_Exit "ncdiff"
+       IGCM_debug_Exit "ncdiff"
     fi
 
@@ -1374,5 +1374,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncea : erreur ${@}."
-#       IGCM_debug_Exit "ncea"
+       IGCM_debug_Exit "ncea"
     fi
 
@@ -1388,5 +1388,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncecat : erreur ${@}."
-#       IGCM_debug_Exit "ncecat"
+       IGCM_debug_Exit "ncecat"
     fi
 
@@ -1402,5 +1402,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncflint : erreur ${@}."
-#       IGCM_debug_Exit "ncflint"
+       IGCM_debug_Exit "ncflint"
     fi
 
@@ -1416,5 +1416,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncks : erreur ${@}."
-#       IGCM_debug_Exit "ncks"
+       IGCM_debug_Exit "ncks"
     fi
 
@@ -1430,5 +1430,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncpdq : erreur ${@}."
-#       IGCM_debug_Exit "ncpdq"
+       IGCM_debug_Exit "ncpdq"
     fi
 
@@ -1444,5 +1444,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncra : erreur ${@}."
-#       IGCM_debug_Exit "ncra"
+       IGCM_debug_Exit "ncra"
     fi
 
@@ -1472,5 +1472,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncrename : erreur ${@}."
-#       IGCM_debug_Exit "ncrename"
+       IGCM_debug_Exit "ncrename"
     fi
 
@@ -1486,5 +1486,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncwa : erreur ${@}."
-#       IGCM_debug_Exit "ncwa"
+       IGCM_debug_Exit "ncwa"
     fi
 
@@ -1501,5 +1501,9 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_cdo : erreur ${@}."
-#       IGCM_debug_Exit "cdo"
+       IGCM_debug_PopStack "IGCM_sys_cdo"
+       return 1
+    else
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 0
     fi
 
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh	(revision 409)
@@ -209,5 +209,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
@@ -1169,5 +1169,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncap2 : erreur ${@}."
-#       IGCM_debug_Exit "ncap2"
+       IGCM_debug_Exit "ncap2"
     fi
 
@@ -1183,5 +1183,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncatted : erreur ${@}."
-#       IGCM_debug_Exit "ncatted"
+       IGCM_debug_Exit "ncatted"
     fi
 
@@ -1197,5 +1197,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncbo : erreur ${@}."
-#       IGCM_debug_Exit "ncbo"
+       IGCM_debug_Exit "ncbo"
     fi
 
@@ -1211,5 +1211,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncdiff : erreur ${@}."
-#       IGCM_debug_Exit "ncdiff"
+       IGCM_debug_Exit "ncdiff"
     fi
 
@@ -1225,5 +1225,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncea : erreur ${@}."
-#       IGCM_debug_Exit "ncea"
+       IGCM_debug_Exit "ncea"
     fi
 
@@ -1239,5 +1239,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncecat : erreur ${@}."
-#       IGCM_debug_Exit "ncecat"
+       IGCM_debug_Exit "ncecat"
     fi
 
@@ -1253,5 +1253,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncflint : erreur ${@}."
-#       IGCM_debug_Exit "ncflint"
+       IGCM_debug_Exit "ncflint"
     fi
 
@@ -1267,5 +1267,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncks : erreur ${@}."
-#       IGCM_debug_Exit "ncks"
+       IGCM_debug_Exit "ncks"
     fi
 
@@ -1281,5 +1281,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncpdq : erreur ${@}."
-#       IGCM_debug_Exit "ncpdq"
+       IGCM_debug_Exit "ncpdq"
     fi
 
@@ -1295,5 +1295,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncra : erreur ${@}."
-#       IGCM_debug_Exit "ncra"
+       IGCM_debug_Exit "ncra"
     fi
 
@@ -1323,5 +1323,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncrename : erreur ${@}."
-#       IGCM_debug_Exit "ncrename"
+       IGCM_debug_Exit "ncrename"
     fi
 
@@ -1337,5 +1337,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncwa : erreur ${@}."
-#       IGCM_debug_Exit "ncwa"
+       IGCM_debug_Exit "ncwa"
     fi
 
@@ -1352,5 +1352,9 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_cdo : erreur ${@}."
-#       IGCM_debug_Exit "cdo"
+       IGCM_debug_PopStack "IGCM_sys_cdo"
+       return 1
+    else
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 0
     fi
 
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercure.ksh	(revision 409)
@@ -1127,5 +1127,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncap2 : erreur ${@}."
-#       IGCM_debug_Exit "ncap2"
+       IGCM_debug_Exit "ncap2"
     fi
 
@@ -1141,5 +1141,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncatted : erreur ${@}."
-#       IGCM_debug_Exit "ncatted"
+       IGCM_debug_Exit "ncatted"
     fi
 
@@ -1155,5 +1155,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncbo : erreur ${@}."
-#       IGCM_debug_Exit "ncbo"
+       IGCM_debug_Exit "ncbo"
     fi
 
@@ -1169,5 +1169,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncdiff : erreur ${@}."
-#       IGCM_debug_Exit "ncdiff"
+       IGCM_debug_Exit "ncdiff"
     fi
 
@@ -1183,5 +1183,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncea : erreur ${@}."
-#       IGCM_debug_Exit "ncea"
+       IGCM_debug_Exit "ncea"
     fi
 
@@ -1197,5 +1197,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncecat : erreur ${@}."
-#       IGCM_debug_Exit "ncecat"
+       IGCM_debug_Exit "ncecat"
     fi
 
@@ -1211,5 +1211,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncflint : erreur ${@}."
-#       IGCM_debug_Exit "ncflint"
+       IGCM_debug_Exit "ncflint"
     fi
 
@@ -1225,5 +1225,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncks : erreur ${@}."
-#       IGCM_debug_Exit "ncks"
+       IGCM_debug_Exit "ncks"
     fi
 
@@ -1239,5 +1239,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncpdq : erreur ${@}."
-#       IGCM_debug_Exit "ncpdq"
+       IGCM_debug_Exit "ncpdq"
     fi
 
@@ -1253,5 +1253,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncra : erreur ${@}."
-#       IGCM_debug_Exit "ncra"
+       IGCM_debug_Exit "ncra"
     fi
 
@@ -1281,5 +1281,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncrename : erreur ${@}."
-#       IGCM_debug_Exit "ncrename"
+       IGCM_debug_Exit "ncrename"
     fi
 
@@ -1295,5 +1295,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncwa : erreur ${@}."
-#       IGCM_debug_Exit "ncwa"
+       IGCM_debug_Exit "ncwa"
     fi
 
@@ -1310,5 +1310,9 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_cdo : erreur ${@}."
-#       IGCM_debug_Exit "cdo"
+       IGCM_debug_PopStack "IGCM_sys_cdo"
+       return 1
+    else
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 0
     fi
 
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex8.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex8.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex8.ksh	(revision 409)
@@ -222,5 +222,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_mercurex9.ksh	(revision 409)
@@ -230,5 +230,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_obelix.ksh	(revision 409)
@@ -220,5 +220,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
@@ -1186,5 +1186,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncap2 : erreur ${@}."
-#       IGCM_debug_Exit "ncap2"
+       IGCM_debug_Exit "ncap2"
     fi
 
@@ -1200,5 +1200,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncatted : erreur ${@}."
-#       IGCM_debug_Exit "ncatted"
+       IGCM_debug_Exit "ncatted"
     fi
 
@@ -1214,5 +1214,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncbo : erreur ${@}."
-#       IGCM_debug_Exit "ncbo"
+       IGCM_debug_Exit "ncbo"
     fi
 
@@ -1228,5 +1228,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncdiff : erreur ${@}."
-#       IGCM_debug_Exit "ncdiff"
+       IGCM_debug_Exit "ncdiff"
     fi
 
@@ -1242,5 +1242,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncea : erreur ${@}."
-#       IGCM_debug_Exit "ncea"
+       IGCM_debug_Exit "ncea"
     fi
 
@@ -1256,5 +1256,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncecat : erreur ${@}."
-#       IGCM_debug_Exit "ncecat"
+       IGCM_debug_Exit "ncecat"
     fi
 
@@ -1270,5 +1270,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncflint : erreur ${@}."
-#       IGCM_debug_Exit "ncflint"
+       IGCM_debug_Exit "ncflint"
     fi
 
@@ -1284,5 +1284,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncks : erreur ${@}."
-#       IGCM_debug_Exit "ncks"
+       IGCM_debug_Exit "ncks"
     fi
 
@@ -1298,5 +1298,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncpdq : erreur ${@}."
-#       IGCM_debug_Exit "ncpdq"
+       IGCM_debug_Exit "ncpdq"
     fi
 
@@ -1312,5 +1312,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncra : erreur ${@}."
-#       IGCM_debug_Exit "ncra"
+       IGCM_debug_Exit "ncra"
     fi
 
@@ -1340,5 +1340,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncrename : erreur ${@}."
-#       IGCM_debug_Exit "ncrename"
+       IGCM_debug_Exit "ncrename"
     fi
 
@@ -1354,5 +1354,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncwa : erreur ${@}."
-#       IGCM_debug_Exit "ncwa"
+       IGCM_debug_Exit "ncwa"
     fi
 
@@ -1369,5 +1369,9 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_cdo : erreur ${@}."
-#       IGCM_debug_Exit "cdo"
+       IGCM_debug_PopStack "IGCM_sys_cdo"
+       return 1
+    else
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 0
     fi
 
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_platine.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_platine.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_platine.ksh	(revision 409)
@@ -1229,5 +1229,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncap2 : erreur ${@}."
-#       IGCM_debug_Exit "ncap2"
+       IGCM_debug_Exit "ncap2"
     fi
 
@@ -1243,5 +1243,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncatted : erreur ${@}."
-#       IGCM_debug_Exit "ncatted"
+       IGCM_debug_Exit "ncatted"
     fi
 
@@ -1257,5 +1257,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncbo : erreur ${@}."
-#       IGCM_debug_Exit "ncbo"
+       IGCM_debug_Exit "ncbo"
     fi
 
@@ -1271,5 +1271,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncdiff : erreur ${@}."
-#       IGCM_debug_Exit "ncdiff"
+       IGCM_debug_Exit "ncdiff"
     fi
 
@@ -1285,5 +1285,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncea : erreur ${@}."
-#       IGCM_debug_Exit "ncea"
+       IGCM_debug_Exit "ncea"
     fi
 
@@ -1299,5 +1299,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncecat : erreur ${@}."
-#       IGCM_debug_Exit "ncecat"
+       IGCM_debug_Exit "ncecat"
     fi
 
@@ -1313,5 +1313,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncflint : erreur ${@}."
-#       IGCM_debug_Exit "ncflint"
+       IGCM_debug_Exit "ncflint"
     fi
 
@@ -1327,5 +1327,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncks : erreur ${@}."
-#       IGCM_debug_Exit "ncks"
+       IGCM_debug_Exit "ncks"
     fi
 
@@ -1341,5 +1341,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncpdq : erreur ${@}."
-#       IGCM_debug_Exit "ncpdq"
+       IGCM_debug_Exit "ncpdq"
     fi
 
@@ -1355,5 +1355,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncra : erreur ${@}."
-#       IGCM_debug_Exit "ncra"
+       IGCM_debug_Exit "ncra"
     fi
 
@@ -1383,5 +1383,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncrename : erreur ${@}."
-#       IGCM_debug_Exit "ncrename"
+       IGCM_debug_Exit "ncrename"
     fi
 
@@ -1397,5 +1397,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncwa : erreur ${@}."
-#       IGCM_debug_Exit "ncwa"
+       IGCM_debug_Exit "ncwa"
     fi
 
@@ -1411,6 +1411,10 @@
     \cdo $@
     if [ $? -gt 0 ] ; then
-       echo "IGCM_sys_cdo : erreur ${@}."
-#       IGCM_debug_Exit "cdo"
+	echo "IGCM_sys_cdo : erreur ${@}."
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 1
+    else
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 0
     fi
 
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_titane.ksh	(revision 409)
@@ -246,5 +246,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
        echo "IGCM_sys_SendMail :" $@
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_ulam.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_ulam.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_ulam.ksh	(revision 409)
@@ -1022,5 +1022,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncatted : erreur ${@}."
-#       IGCM_debug_Exit "ncatted"
+       IGCM_debug_Exit "ncatted"
     fi
 
@@ -1148,5 +1148,5 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_ncrcat : erreur ${@}."
-       IGCM_debug_Exit "ncrcat"
+#       IGCM_debug_Exit "ncrcat"
     fi
 
@@ -1191,5 +1191,9 @@
     if [ $? -gt 0 ] ; then
        echo "IGCM_sys_cdo : erreur ${@}."
-#       IGCM_debug_Exit "cdo"
+       IGCM_debug_PopStack "IGCM_sys_cdo"
+       return 1
+    else
+	IGCM_debug_PopStack "IGCM_sys_cdo"
+	return 0
     fi
 
Index: trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh
===================================================================
--- trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh	(revision 408)
+++ trunk/libIGCM/libIGCM_sys/libIGCM_sys_vargas.ksh	(revision 409)
@@ -178,5 +178,5 @@
 #D-
 function IGCM_sys_SendMail {
-    IGCM_debug_PushStack "IGCM_sys_SendMailPost" $@
+    IGCM_debug_PushStack "IGCM_sys_SendMail" $@
     if ( $DEBUG_sys ) ; then
 	echo "IGCM_sys_SendMail :" $@
