source: tags/libIGCM_v2.0/AA_TimeSeries_Checker @ 1170

Last change on this file since 1170 was 856, checked in by mafoipsl, 11 years ago

For TimeSeries_Checker, use IGCM_sys_TestFileArchive generic function, instead of simple test -f, to be able to run on ada. Tested on curie and ada.

  • Property svn:keywords set to Revision Author Date
File size: 21.3 KB
Line 
1#!/bin/ksh
2
3#**************************************************************
4# Author: Sebastien Denvil
5# Contact: Sebastien.Denvil__at__ipsl.jussieu.fr
6# $Revision::                                          $ Revision of last commit
7# $Author::                                            $ Author of last commit
8# $Date::                                              $ Date of last commit
9# IPSL (2006)
10#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
11#
12#**************************************************************
13
14#D- Task type (computing or post-processing)
15TaskType=post-processing
16
17# Check that everything went well during time series production
18# Display a short report
19# Launch what's missing
20# For use during a run (not on the end : PeriodState=Completed), it will complete
21# all TS to last PeriodDateEnd value, give by run.card->Configuration->OldPrefix string.
22
23#D- Path to libIGCM
24#D- Default : value from AA_job if any
25# WARNING For StandAlone use : To run this script on some machine (ulam and cesium)
26# WARNING you must check MirrorlibIGCM variable in sys library.
27# WARNING If this variable is true, you must use libIGCM_POST path instead
28# WARNING of your running libIGCM directory.
29libIGCM=${libIGCM:=::modipsl::/libIGCM}
30
31# Expericence class of the run
32ExperimentName=${ExperimentName:=historical}
33
34# Name of this job
35JobName=${JobName:=v2.historical1}
36
37# répertoire courrant
38CURRENT_DIR=$( pwd )
39
40# Emplacement des cartes
41CARD_DIR=${CARD_DIR:=${CURRENT_DIR}/${ExperimentName}/${JobName}}
42
43# répertoire de stockage des sorties des create_ts
44POST_DIR=${POST_DIR:=${CARD_DIR}/OutScript}
45
46if [ ! -d ${CARD_DIR} ]; then
47  echo "No ${CARD_DIR}, we stop here"
48  exit
49fi
50
51########################################################################
52
53. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
54. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
55. ${libIGCM}/libIGCM_date/libIGCM_date.ksh
56#-------
57. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh
58. ${libIGCM}/libIGCM_config/libIGCM_config.ksh
59#-------
60( ${DEBUG_debug} ) && IGCM_debug_Check
61( ${DEBUG_debug} ) && IGCM_card_Check
62( ${DEBUG_debug} ) && IGCM_date_Check
63
64########################################################################
65
66#set -vx
67
68echo "Hi I'm here to help you complete the time series production you planned according to your *.card."
69echo "This action can potentially submit numbers of jobs (up to 50)"
70echo "This action can potentially remove unnecessary files but I will ALWAYS ask permission to do so"
71echo -e "\033[1;31mDo you want me to run in dryrun mode just telling what I would submit?\033[m"
72echo -e "\033[1;31mOr do you want me to submit job for real? Answer yes in this case.\033[m"
73echo -n " Run for real (y/n) :"
74read ActionAnswer
75
76case ${ActionAnswer} in
77oui|OUI|o|y|yes|YES)
78  echo "OK. I will submit jobs but ask permissions before removing files"
79  action=true
80  ;;
81non|NON|n|no|NO)
82  echo "OK. I won't submit jobs and only print out files I could remove"
83  action=false
84  ;;
85*)
86  echo "I did not recognize your answer. I will stop here."
87  echo "Please respond: oui|OUI|o|y|yes|YES"
88  echo "Or please respond: non|NON|n|no|NO"
89  exit
90  ;;
91esac
92
93#==================================
94# First of all
95#
96# Read libIGCM compatibility version in config.card
97# Read UserChoices section
98# Read Ensemble section
99# Read Post section
100# Define all netcdf output directories
101#==================================
102IGCM_config_CommonConfiguration ${CARD_DIR}/config.card
103
104#==================================
105# Read ListOfComponents section:
106IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card ListOfComponents
107
108if [ -f ${CARD_DIR}/run.card ] ; then
109  IGCM_card_DefineVariableFromOption ${CARD_DIR}/run.card Configuration OldPrefix
110  IGCM_card_DefineVariableFromOption ${CARD_DIR}/run.card Configuration PeriodState
111  IGCM_card_DefineVariableFromOption ${CARD_DIR}/run.card PostProcessing TimeSeriesCompleted
112  IGCM_debug_Print 1 "DefineVariableFromOption  : run_Configuration"
113  IGCM_debug_PrintVariables 3 run_Configuration_OldPrefix
114  IGCM_debug_PrintVariables 3 run_Configuration_PeriodState
115  IGCM_debug_Print 1 "DefineVariableFromOption  : run_PostProcessing"
116  IGCM_debug_PrintVariables 3 run_PostProcessing_TimeSeriesCompleted
117  if [ X${run_Configuration_PeriodState} != X"Completed" ] ; then
118    DateEnd=$( IGCM_date_ConvertFormatToGregorian $( echo ${run_Configuration_OldPrefix} | awk -F'_' '{print $2}' ) )
119  else
120    DateEnd=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} )
121  fi
122  CompletedFlag=${run_PostProcessing_TimeSeriesCompleted}
123else
124  DateEnd=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateEnd} )
125  CompletedFlag=""
126fi
127SavedCompletedFlag=${CompletedFlag}
128DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )
129
130IGCM_date_GetYearMonth ${DateBegin} YearBegin MonthBegin
131IGCM_date_GetYearMonth ${DateEnd}   YearEnd   MonthEnd
132
133echo
134IGCM_debug_Print 1 "DateBegin for TimeSeries_Checker : "${DateBegin}
135IGCM_debug_Print 1 "DateEnd   for TimeSeries_Checker : "${DateEnd}
136IGCM_debug_Print 1 "CompletedFlag = "${CompletedFlag}
137echo
138
139for comp in ${config_ListOfComponents[*]} ; do
140  # Debug Print
141  IGCM_debug_Print 1 ${comp}
142  # Define component
143  IGCM_card_DefineArrayFromOption ${CARD_DIR}/config.card ListOfComponents ${comp}
144  eval compname=\${config_ListOfComponents_${comp}[0]} > /dev/null 2>&1
145  eval comptagname=\${config_ListOfComponents_${comp}[1]} > /dev/null 2>&1
146
147  # Read libIGCM compatibility version in ${compname}.card
148  card=${CARD_DIR}/COMP/${compname}.card
149
150  # Read and Build Output File stuff
151  #IGCM_debug_Print 1 "DefineArrayFromOption  : ${compname}_OutputFiles ${card}"
152  IGCM_card_DefineArrayFromOption ${card} OutputFiles List
153  ListFilesName=${compname}_OutputFiles_List
154  eval FileName0=\${${ListFilesName}[0]} > /dev/null 2>&1
155  #
156  if [ X${FileName0} != X${NULL_STR} ] ; then
157    #
158    #IGCM_debug_Print 1 "Component      : ${compname}"
159    #
160    # INITIALISATION
161    #
162    eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1
163    i=2
164    #
165    until [ $i -ge $NbFiles ]; do
166      #
167      eval flag_post=\${${ListFilesName}[$i]} > /dev/null 2>&1
168      #
169      if [ X${flag_post} != XNONE ] ; then
170        #
171        # First of all
172        #
173        IGCM_card_DefineArrayFromSection ${card} ${flag_post}
174        #
175        IGCM_card_DefineArrayFromOption ${card} ${flag_post} TimeSeriesVars
176        IGCM_card_DefineArrayFromOption ${card} ${flag_post} Patches
177        if [ X"$( eval echo \${${compname}_${flag_post}_TimeSeriesVars[*]} )" = X"Option not" ] ; then
178          # New TimeSeriesVar description, with 2D, 3D and associate ChunckJob.
179          unset ListDimension
180          ListDimension[0]=2D
181          ListDimension[1]=3D
182          TimeSeries=false
183          TimeSeries2D=false
184          TimeSeries3D=false
185          chunck=false
186          iLoop=${#ListDimension[*]}
187          j=0
188          until [ $j -ge ${iLoop} ]; do
189            Dimension=${ListDimension[${j}]}
190            IGCM_card_DefineArrayFromOption ${card} ${flag_post} TimeSeriesVars${Dimension}
191            IGCM_card_DefineVariableFromOption ${card} ${flag_post} ChunckJob${Dimension}
192            #
193            # Time series WITHOUT chunk
194            #
195            if [ ! $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then
196              if [ $( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} ) = NONE ] ; then
197                IGCM_debug_Print 2 "${Dimension} time series activated for ${flag_post}"
198                eval TimeSeries${Dimension}=true
199                chunck=false
200              fi
201            fi
202            #
203            # Time series WITH chunk
204            #
205            if [ ! $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then
206              chunck_size=$( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} )
207              if [ ! ${chunck_size} = NONE ] &&  [ ! ${chunck_size} = OFF ] ; then
208                IGCM_debug_Print 2 "${Dimension} time series activated with ${chunck_size} chunck for ${flag_post}"
209                eval TimeSeriesChunck${Dimension}=true
210                chunck=true
211              fi
212            fi
213            (( j=j+1 ))
214            #
215            # If TimeSeriesVars list is empty or OFF we skip
216            #
217            if ( [ $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] || \
218              [ ${chunck_size} = OFF ] ) ; then
219              #IGCM_debug_Print 2 "Empty TS : ${compname}_Post_${FILE}_TimeSeriesVars${Dimension}"
220              #(( i=i+3 ))
221              continue
222            fi
223            #
224            #  ICI ON TESTE QUE LES FICHIERS TS SONT LA!
225            #
226            FILE=$( echo ${flag_post} | awk "-FPost_" '{print $2}' )
227            IGCM_card_DefineArrayFromOption ${card}    Post_${FILE} TimeSeriesVars${Dimension}
228            IGCM_card_DefineVariableFromOption ${card} Post_${FILE} ChunckJob${Dimension}
229            #
230            FlagDir=$( echo ${FILE} | awk -F "_" '{print $1}' )
231            case ${FlagDir} in
232            *Y)  TS_Dir=TS_YE  ;;
233            *M)  TS_Dir=TS_MO  ;;
234            *D)  TS_Dir=TS_DA  ;;
235            3H|HF)  TS_Dir=TS_HF  ;;
236            INS) TS_Dir=TS_INS ;;
237            esac
238            #
239            # We need LIST of variables not allready produced (useful for standalone mode)
240            #
241            DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )
242            IGCM_date_GetYearMonth ${DateBegin} YearBegin MonthBegin
243
244            # Si on n'a pas de chunck, dans ce cas chunck_size=la durée de la simulation en années
245            YearsChunckLength=$( echo ${chunck_size} | sed -e "s/[yY]//" )
246            [ ${chunck} = false ] && YearsChunckLength=$(( YearEnd - YearBegin + 1 ))
247
248            NbYearsChunckLoop=$(( ( YearEnd - YearBegin + 1 ) / YearsChunckLength ))
249            Reste=$(( ( YearEnd - YearBegin + 1 ) % YearsChunckLength ))
250
251            if [ ${Reste} -ne 0 ] ; then
252              NbYearsChunckLoop=$(( NbYearsChunckLoop + 1 ))
253            fi
254
255            if [ ${NbYearsChunckLoop} -eq 1 ] ; then
256              PeriodDateEnd=${DateEnd}
257            else
258              DaysInYear=$( IGCM_date_DaysInYear ${YearBegin} )
259              PeriodDateEnd=$( IGCM_date_AddDaysToGregorianDate ${DateBegin} $(( YearsChunckLength * DaysInYear - 1 )) )
260            fi
261            #
262            DIRECTORY=${R_SAVE}/${comp}/Analyse/${TS_Dir}
263            YearsChunckLoop=1
264            ChunckDebut=${DateBegin}
265            ChunckFin=${PeriodDateEnd}
266            while [ ${YearsChunckLoop} -le ${NbYearsChunckLoop} ] ; do
267              countTotal=0
268              countGood=0
269              countBad=0
270              unset RemoveList
271              unset PotentialCompletedFlag
272              for var in $( eval echo \${${compname}_Post_${FILE}_TimeSeriesVars${Dimension}[*]} ) ; do
273                TestedFile=${config_UserChoices_JobName}_${ChunckDebut}_${ChunckFin}_${FlagDir}_${var}.nc
274                #
275                DEBUG_sys=false IGCM_sys_TestDirArchive ${DIRECTORY}
276                if [ $? = 0 ] ; then
277                  Candidat=$( IGCM_sys_RshArchive "find ${DIRECTORY} -name "${config_UserChoices_JobName}_${ChunckDebut}_*_${FlagDir}_${var}.nc"" )
278                else
279                  Candidat=""
280                fi
281                #
282                BestCandidat=${ChunckDebut}
283                #
284                FoundCandidat=false
285                if [ ! "X${Candidat}" = "X" ] ; then
286                  for candid in ${Candidat} ; do
287                    #IGCM_debug_Print 1 -e "\033[1;32m[CompletedFlag CANDIDAT MATCH FOUND]\033[m $( basename ${candid} )"
288                    CandidatEnd=$( echo ${candid}   | awk -F${config_UserChoices_JobName} '{print $3}' | awk -F_ '{print $3}' )
289                    if [ ${CandidatEnd} -gt ${ChunckFin} ] ; then
290                      #IGCM_debug_Print 3 -e "File $( basename ${candid} ) should be suppress"
291                      set +A RemoveList ${RemoveList[*]} ${candid}
292                    elif [ ${CandidatEnd} -lt ${ChunckFin} ] ; then
293                      #IGCM_debug_Print 3 -e "File $( basename ${candid} ) should be suppress or used as a CompletedFlag baseline"
294                      # We keep the best candidat and remove the others
295                      if [ ${BestCandidat} -lt ${CandidatEnd} ] ; then
296                        if [ ${FoundCandidat} = true ] ; then
297                          set +A RemoveList ${RemoveList[*]} ${DIRECTORY}/${config_UserChoices_JobName}_${ChunckDebut}_${BestCandidat}_${FlagDir}_${var}.nc
298                        else
299                          FoundCandidat=true
300                        fi
301                        BestCandidat=${CandidatEnd}
302                      else
303                        set +A RemoveList ${RemoveList[*]} ${candid}
304                      fi
305                    fi
306                  done
307                else
308                  # No CompletedFlag candidat found
309                  CandidatCompletedFlag=""
310                fi
311                #
312                IGCM_sys_TestFileArchive ${DIRECTORY}/${TestedFile} >/dev/null 2>&1
313                if [ ! $? = 0 ] ; then
314                  (( countBad = countBad + 1 ))
315                  [ ${countBad} = 1 ] && IGCM_debug_Print 3 "Missing time series from ${FILE} :"
316                  IGCM_debug_Print 3 ${DIRECTORY}/${TestedFile}
317                  # Then we keep a track of the Best Candidat
318                  if [ ${FoundCandidat} = true ] ; then
319                    if [ ${chunck} = true ] ; then
320                      set +A PotentialCompletedFlag ${PotentialCompletedFlag[*]} ${BestCandidat}
321                    else
322                      eval set +A PotentialCompletedFlag${Dimension} \${PotentialCompletedFlag${Dimension}[*]} \${BestCandidat}
323                    fi
324                  fi
325                else
326                  (( countGood = countGood + 1 ))
327                  # Then we do not need the best candidat if any
328                  [ ${FoundCandidat} = true ] && set +A RemoveList ${RemoveList[*]} ${DIRECTORY}/${config_UserChoices_JobName}_${ChunckDebut}_${BestCandidat}_${FlagDir}_${var}.nc
329                fi
330                (( countTotal = countTotal + 1 ))
331              done
332
333              SuccessRate=$(( countGood * 100 / countTotal ))
334              if [ ${SuccessRate} -ne 100 ] ; then
335                IGCM_debug_Print 2 -e "\033[1;31m${SuccessRate}% files OK.\033[m for period ${ChunckDebut}-${ChunckFin}"
336              else
337                IGCM_debug_Print 2 -e "\033[1;32m${SuccessRate}% files OK.\033[m for period ${ChunckDebut}-${ChunckFin}"
338              fi
339              echo
340
341              # Remove what's in the RemoveList
342              if [ ${RemoveList} ] ; then
343                IGCM_debug_Print 2 "File(s) that will be removed ${RemoveList[*]}"
344                if [ ${action} = true ] ; then
345                  echo -e "\033[1;32mDo you want to remove them?\033[m"
346                  echo -n " Your answer (y/n) : "
347                  read RemoveAnswer
348                  case ${RemoveAnswer} in
349                  oui|OUI|o|y|yes|YES)
350                    echo "OK. I will erase them"
351                    IGCM_sys_Rm -f ${RemoveList[*]}
352                    ;;
353                  non|NON|n|no|NO)
354                    echo "OK. I won't erase them"
355                    ;;
356                  *)
357                    echo "I did not recognize your answer."
358                    echo "Please respond: oui|OUI|o|y|yes|YES"
359                    echo "Or please respond: non|NON|n|no|NO"
360                    exit
361                    ;;
362                  esac
363                fi
364              fi
365              #[ ${FoundCandidat} = true ] && IGCM_debug_Print 2 "Potentials CompletedFlag: ${PotentialCompletedFlag[*]}"
366              #
367              # TO REWRITE BEGIN
368              #
369              if ( [ ${chunck} = true ] && [ ${SuccessRate} -ne 100 ] ) ; then
370                NbCandidats=${#PotentialCompletedFlag[@]}
371                countCandid=1
372                if [ ${NbCandidats} -eq 0 ] ; then
373                  ChunckCompletedFlag=""
374                  IGCM_debug_Print 2 -e "\033[1;31mNO CompletedFlag\033[m"
375                elif [ ${NbCandidats} -eq 1 ] ; then
376                  ChunckCompletedFlag=${PotentialCompletedFlag[0]}
377                  IGCM_debug_Print 2 -e "\033[1;32mCompletedFlag=${ChunckCompletedFlag}\033[m"
378                elif [ ${NbCandidats} -gt 1 ] ; then
379                  k=1
380                  until [ $k -ge ${NbCandidats} ]; do
381                    ((k_m1=k-1))
382                    if [ ${PotentialCompletedFlag[${k_m1}]} = ${PotentialCompletedFlag[${k}]} ] ; then
383                      ((countCandid=countCandid+1))
384                    fi
385                    ((k=k+1))
386                  done
387                  if [ ${NbCandidats} -eq ${countCandid} ] ; then
388                    ChunckCompletedFlag=${PotentialCompletedFlag[0]}
389                    IGCM_debug_Print 2 -e "\033[1;32mCompletedFlag=${ChunckCompletedFlag}\033[m"
390                  else
391                    ChunckCompletedFlag=${PotentialCompletedFlag[0]}
392                    IGCM_debug_Print 2 -e "\033[1;31mToo Many Potential CompletedFlag\033[m Let start with first CompletedPeriod"
393                    IGCM_debug_Print 2 -e "\033[1;31mYou will have to redo TimeSeries_Checker\033[m for other period."
394                  fi
395                fi
396                #
397                # TO REWRITE END
398                #
399                if [ ${action} = true ] ; then
400                  IGCM_debug_Print 2 -e "\033[1;31mSubmit ${FILE} chunck ${Dimension}\033[m period ${ChunckDebut}-${ChunckFin} and CompletedFlag=${ChunckCompletedFlag}"
401                  listVarEnv="libIGCM,SUBMIT_DIR,POST_DIR,DateBegin,PeriodDateEnd,CompletedFlag,TsTask,CompToRead,FlagToRead"
402                  export libIGCM=${libIGCM}
403                  export SUBMIT_DIR=${CARD_DIR}
404                  export POST_DIR=${POST_DIR}
405                  export DateBegin=${ChunckDebut}
406                  export PeriodDateEnd=${ChunckFin}
407                  export CompletedFlag=${ChunckCompletedFlag}
408                  export TsTask=Chunck${Dimension}
409                  export CompToRead=${comp}
410                  export FlagToRead=${i}
411                  export NameToRead=${flag_post}
412                  export listVarEnv=${listVarEnv}
413                  IGCM_sys_MkdirWork ${POST_DIR}
414                  IGCM_debug_Verif_Exit_Post
415                  Script_Post_Output=create_ts.${PeriodDateEnd}.${TsTask}.${CompToRead}.${NameToRead}
416                  IGCM_sys_QsubPost create_ts
417                  echo
418                else
419                  IGCM_debug_Print 2 -e "\033[1;31mI should NOW submit ${FILE} chunck ${Dimension}\033[m period ${ChunckDebut}-${ChunckFin} and CompletedFlag=${ChunckCompletedFlag}"
420                fi
421              fi
422
423              if ( [ ${chunck} = false ] && [ ${SuccessRate} -ne 100 ] ) ; then
424                eval Launch${Dimension}=true
425              fi
426
427              # Date update
428              ChunckDebut=$( IGCM_date_AddDaysToGregorianDate ${ChunckFin} 1 )
429
430              (( YearsChunckLoop = YearsChunckLoop + 1 ))
431
432              if [ ${YearsChunckLoop} -eq ${NbYearsChunckLoop} ] ; then
433                ChunckFin=${DateEnd}
434              else
435                ChunckFin=$( IGCM_date_AddDaysToGregorianDate ${ChunckDebut} $(( YearsChunckLength * DaysInYear - 1 )) )
436              fi
437            done
438          done
439        else
440          ListDimension[0]=""
441          TimeSeries=true
442          TimeSeries2D=false
443          TimeSeries3D=false
444          TimeSeriesChunck2D=false
445          TimeSeriesChunck3D=false
446        fi
447      fi
448      (( i=i+3 ))
449    done
450  fi
451done # comp loop
452
453echo
454
455DateBegin=$( IGCM_date_ConvertFormatToGregorian ${config_UserChoices_DateBegin} )
456IGCM_date_GetYearMonth ${DateBegin} YearBegin MonthBegin
457CompletedFlag=${SavedCompletedFlag}
458
459unset CompToRead
460unset FlagToRead
461
462if [ X${Launch2D} = Xtrue ] ; then
463  if [ ${action} = true ] ; then
464    #IGCM_debug_Print 2 "Potentials CompletedFlag: ${PotentialCompletedFlag2D[*]}"
465    IGCM_debug_Print 2 -e "\033[1;31mSubmit 2D\033[m without chunck period ${DateBegin}-${DateEnd}"
466    listVarEnv="libIGCM,SUBMIT_DIR,POST_DIR,DateBegin,PeriodDateEnd,CompletedFlag,TsTask"
467    export libIGCM=${libIGCM}
468    export SUBMIT_DIR=${CARD_DIR}
469    export POST_DIR=${POST_DIR}
470    export DateBegin=${DateBegin}
471    export PeriodDateEnd=${DateEnd}
472    export CompletedFlag=${CompletedFlag}
473    export TsTask=2D
474    export listVarEnv=${listVarEnv}
475    IGCM_sys_MkdirWork ${POST_DIR}
476    IGCM_debug_Verif_Exit_Post
477    Script_Post_Output=create_ts.${PeriodDateEnd}.${TsTask}
478    IGCM_sys_QsubPost create_ts
479    echo
480  else
481    IGCM_debug_Print 2 -e "\033[1;31mI should NOW submit 2D without chunck\033[m period ${DateBegin}-${DateEnd}"
482  fi
483fi
484
485if [ X${Launch3D} = Xtrue ] ; then
486  if [ ${action} = true ] ; then
487    #IGCM_debug_Print 2 "Potentials CompletedFlag: ${PotentialCompletedFlag3D[*]}"
488    IGCM_debug_Print 2 -e "\033[1;31mSubmit 3D\033[m without chunck period ${DateBegin}-${DateEnd}"
489    listVarEnv="libIGCM,SUBMIT_DIR,POST_DIR,DateBegin,PeriodDateEnd,CompletedFlag,TsTask"
490    export libIGCM=${libIGCM}
491    export SUBMIT_DIR=${CARD_DIR}
492    export POST_DIR=${POST_DIR}
493    export DateBegin=${DateBegin}
494    export PeriodDateEnd=${DateEnd}
495    export CompletedFlag=${CompletedFlag}
496    export TsTask=3D
497    export listVarEnv=${listVarEnv}
498    IGCM_sys_MkdirWork ${POST_DIR}
499    IGCM_debug_Verif_Exit_Post
500    Script_Post_Output=create_ts.${PeriodDateEnd}.${TsTask}
501    IGCM_sys_QsubPost create_ts
502    echo
503  else
504    IGCM_debug_Print 2 -e "\033[1;31mI should NOW submit 3D without chunck\033[m  period ${DateBegin}-${DateEnd}"
505  fi
506fi
Note: See TracBrowser for help on using the repository browser.