source: trunk/libIGCM/AA_TimeSeries_Checker @ 832

Last change on this file since 832 was 832, checked in by sdipsl, 11 years ago
  • Trivial changes to accomodate new_libIGCM function defined here /ccc/cont003/home/dsm/p86mart/.bash_alias (ksh-->bash)

She transforms every cp and rm by IGCM_sys_Cp and IGCM_sys_Rm within IGCM_debug_Check. So we need to source sys before calling it.

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