Changeset 653


Ignore:
Timestamp:
04/16/12 10:17:06 (12 years ago)
Author:
sdipsl
Message:
  • Bugfix : when asking only for chunked time series job was not submitted
  • Bugfix : when in pack case seasonal job was not submitted if no time series were active
  • Cosmetics
Location:
trunk/libIGCM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_output

    r647 r653  
    315315          fi 
    316316        done 
    317  
    318         if [ ! ${nbfile} = ${NbPeriodPerFrequency} ] ; then 
    319           IGCM_debug_Print 1 "Number of files to process is not equal to what it should be" 
    320           IGCM_debug_Print 1 "We found ${nbfiles} files and it should have been ${NbPeriodPerFrequency} files" 
    321           IGCM_debug_Exit "ERROR in number of files to process. STOP HERE INCLUDING THE COMPUTING JOB" 
    322           IGCM_debug_Verif_Exit 
    323         fi 
    324  
    325317        # Select list of variables to work with 
    326318        list_var=$( cat liste_variables_${myType}_${date_begin_pack}_${date_end_pack}.txt | sort | uniq -c | awk -v nbfile=$nbfile '{if ($1 != nbfile) {print $2}}' | paste -s -d ',' ) 
     
    328320        # Create packed files 
    329321        IGCM_debug_Print 1 "Ncrcat ongoing for ${dir} and ${myType}" 
     322        if [ ! ${nbfile} = ${NbPeriodPerFrequency} ] ; then 
     323          IGCM_debug_Print 1 "Number of files to process is not equal to what it should be" 
     324          IGCM_debug_Print 1 "We found ${nbfile} files and it should have been ${NbPeriodPerFrequency} files" 
     325          IGCM_debug_Exit "ERROR in number of files to process. STOP HERE INCLUDING THE COMPUTING JOB" 
     326          IGCM_debug_Verif_Exit 
     327        fi 
    330328        output=${JobName}_${date_begin_pack}_${date_end_pack}_${myType} 
    331329        #cat liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt | xargs ncrcat -v ${list_var} -o ${output} 
     
    352350        #mv liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt ${STORE_DEBUG} 
    353351        IGCM_debug_Print 1 "Ncrcat and cleaning done for ${dir} and ${myType}" 
     352        echo 
    354353      done 
    355354    done 
  • trunk/libIGCM/AA_pack_restart

    r647 r653  
    331331    extract_date_file=$( echo ${file}  | sed -e "s/.*${JobName}_//" ) 
    332332    date_file=$( echo ${extract_date_file} | sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 
    333  warning demenagement. delete last restart of the previous pack 
     333    # warning demenagement. delete last restart of the previous pack 
    334334    [  ${date_file} -eq ${date_end_previous} ] && echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${date_begin_pack}_${date_end_pack}.txt 
    335  echo pack number ${number_pack}  ${date_file} ${date_begin_pack} ${date_end_pack} 
     335    # echo pack number ${number_pack}  ${date_file} ${date_begin_pack} ${date_end_pack} 
    336336    if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 
    337337      echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt 
    338  warning demenagement. do not delete last restart of this pack 
     338      # warning demenagement. do not delete last restart of this pack 
    339339      [ ${date_file} -eq ${date_end_pack} ] || echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${date_begin_pack}_${date_end_pack}.txt 
    340 #   Will not work. Need to find a better ordering. 
    341 #   elif [ ${date_file} -ge ${date_end_pack} ] ; then 
    342 #     break 
    343340    fi 
    344341  done 
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r651 r653  
    10061006        ;; 
    10071007      config_Post_TimeSeriesFrequency) 
    1008         IGCM_debug_Print 1  "Change config_Post_TimeSeriesFrequency = ${config_Post_TimeSeriesFrequency} : IGCM_post_Initialize" 
     1008        IGCM_debug_Print 1  "Change config_Post_TimeSeriesFrequency = ${config_Post_TimeSeriesFrequency} : IGCM_post_Configure" 
    10091009        IGCM_post_Configure 
    10101010        ;; 
    10111011      config_Post_SeasonalFrequency) 
    1012         IGCM_debug_Print 1  "Change config_Post_SeasonalFrequency = ${config_Post_SeasonalFrequency} : IGCM_post_Initialize" 
     1012        IGCM_debug_Print 1  "Change config_Post_SeasonalFrequency = ${config_Post_SeasonalFrequency} : IGCM_post_Configure" 
    10131013        IGCM_post_Configure 
    10141014        ;; 
  • trunk/libIGCM/libIGCM_post/libIGCM_post.ksh

    r639 r653  
    4141  fi 
    4242  # 
    43   if ( [ X${TimeSeries} = Xtrue ] || [ X${TimeSeries2D} = Xtrue ] || [ X${TimeSeries3D} = Xtrue ] ) ; then 
     43  if ( [ X${TimeSeries} = Xtrue ] || [ X${TimeSeries2D} = Xtrue ] || [ X${TimeSeries3D} = Xtrue ] || [ X${TimeSeriesChunck2D} = Xtrue ] || [ X${TimeSeriesChunck3D} = Xtrue ] ) ; then 
    4444    list_post="${list_post} TimeSeriesFrequency" 
    4545  fi 
     
    8686    fi 
    8787    # 
    88     IGCM_debug_Print 1 "${post_freq} flag value : ${RebuildFrequency}" 
     88    eval IGCM_debug_Print 1 "${post_freq} flag value : \${${post_freq}}" 
    8989  done 
    9090  # 
    9191  IGCM_debug_Print 2 "POST-TREATEMENT flag value : ${POST}" 
    9292  # 
    93   # Prepare headers for the shell dedicated to offline rebuild 
    94   if ( [ ${PackFrequency} = true ] && ( [ ${TimeSeriesFrequency} = true ] || [ ${TimeSeriesFrequency} = true ] ) ) ; then 
     93  # Prepare headers for the shell dedicated to post-processing 
     94  if ( [ ${PackFrequency} = true ] && ( [ ${TimeSeriesFrequency} = true ] || [ ${SeasonalFrequency} = true ] ) ) ; then 
    9595    if [ $DRYRUN -le 1 ]; then 
    9696      echo "#!/bin/ksh                                     " >  ${R_BUFR}/FlushPost_${PeriodDateEnd}.ksh 
Note: See TracChangeset for help on using the changeset viewer.