Ignore:
Timestamp:
11/09/10 16:02:49 (14 years ago)
Author:
sdipsl
Message:
  • Add a IGCM_config_Check function to test coherency between post-processing frequency. See #29. Will exit before execution if incoherency are found (example rebuild every 6 months, having a 1Y PeriodLenght? and a 2 months TimeSeriesFrequency?...)
  • libIGCM_post.ksh refactoring, making general function to handle frequency, easier to read hopefully. Still some simplification to add
  • DRYRUN was not maintain since a long time. Fix that. Minor adaptation still need to be done for sx8 and sx9 (ie when you want to DRYRUN from a machine initially devoted to the post-processing). DRYRUN is aimed for developpement purpose, prefer StandAlone? method to post-process after the fact.
  • we clean SUBMIT_DIR keeping only the 5 youngest Script_Output_* files. Good for workdir quota.
  • simplify rebuildFrom* options : remove R_SAVE and config_UserChoices_JobName used by IGCM_Patch_20091118_mask.ksh. rebuild.ksh will define that ; AA_create* already know that.
  • when exiting because of a RErun an old job : be more explicit and point the files who initiated this action, together with a link to clean_month.job
  • remove some redundant typeset
  • clean libIGCM_sys.ksh : remove machines
  • and cosmetics.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh

    r373 r380  
    109109            eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    110110            # 
    111             typeset i 
    112111            i=2 
    113112            # 
     
    159158                            if [ ! $( eval echo \${${compname}_${flag_post}_TimeSeriesVars${Dimension}} ) = ${NULL_STR} ] ; then 
    160159                                if [ $( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} ) = NONE ] ; then 
    161                                     IGCM_debug_Print 3 "${Dimension} time series activated for ${flag_post} according to ${card}" 
     160                                    IGCM_debug_Print 3 "${Dimension} time series activated for ${flag_post}" 
    162161                                    eval TimeSeries${Dimension}=true 
    163162                                fi 
     
    169168                                chunck_size=$( eval echo \${${compname}_${flag_post}_ChunckJob${Dimension}} ) 
    170169                                if [ ! ${chunck_size} = NONE ] &&  [ ! ${chunck_size} = OFF ] ; then 
    171                                     IGCM_debug_Print 3 "${Dimension} time series activated with chunck for ${flag_post} according to ${card}" 
     170                                    IGCM_debug_Print 3 "${Dimension} time series activated with chunck for ${flag_post}" 
    172171                                    eval TimeSeriesChunck${Dimension}=true 
    173172                                    eval set +A CHUNCK${Dimension}_COMP \${CHUNCK${Dimension}_COMP[*]} ${comp} 
     
    266265              if [ X${FileName0} != X${NULL_STR} ] ; then 
    267266                  eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    268                   typeset i 
    269267                  (( i=0 )) 
    270268                  until [ $i -ge $NbFiles ]; do 
     
    369367            eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    370368 
    371             typeset i 
    372369            (( i=0 )) 
    373370            until [ $i -ge $NbFiles ]; do 
     
    433430            eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    434431 
    435             typeset i 
    436432            (( i=0 )) 
    437433            until [ $i -ge $NbFiles ]; do 
     
    459455                eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    460456                 
    461                 typeset i 
    462457                (( i=0 )) 
    463458                until [ $i -ge $NbFiles ]; do 
     
    529524            eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    530525 
    531             typeset i 
    532526            (( i=0 )) 
    533527            until [ $i -ge $NbFiles ]; do 
     
    613607                    eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    614608 
    615                     typeset i 
    616609                    (( i=1 )) 
    617610                    until [ $i -gt $NbFiles ]; do 
     
    666659                eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    667660 
    668                 typeset i 
    669661                (( i=1 )) 
    670662                until [ $i -gt $NbFiles ]; do 
     
    828820            eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    829821             
    830             typeset i 
    831822            (( i=0 )) 
    832823            until [ $i -ge $NbFiles ]; do 
     
    893884            eval NbFiles=\${#${ListFilesName}[@]} > /dev/null 2>&1 
    894885 
    895             typeset i 
    896886            (( i=0 )) 
    897887            until [ $i -ge $NbFiles ]; do 
     
    931921                            echo "IGCM_debug_Print 1 \"IGCM_FlushRebuild\"            " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 
    932922                            echo "echo                                                " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 
     923                            echo "export R_SAVE=${R_SAVE}                             " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 
     924                            echo "export config_UserChoices_JobName=${config_UserChoices_JobName} " >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh 
    933925                            fi 
    934926                        fi 
     
    10271019            eval NbFiles=\${#${ListTextName}[@]} > /dev/null 2>&1 
    10281020 
    1029             typeset i 
    10301021            (( i=0 )) 
    10311022            until [ $i -eq $NbFiles ]; do 
Note: See TracChangeset for help on using the changeset viewer.