source: tags/libIGCM_v2.2/AA_TimeSeries_Checker

Last change on this file was 929, checked in by sdipsl, 11 years ago

machine cleanup
whitespace cleanup

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