Changeset 641


Ignore:
Timestamp:
04/12/12 17:21:49 (12 years ago)
Author:
sdipsl
Message:
  • When packing output files, stop everything (including computing job) if number of files to process is not equal to what it must be.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_output

    r640 r641  
    266266IGCM_debug_Verif_Exit_Post 
    267267 
     268IGCM_debug_Print 1 "Check coherence between PackFrequency and PeriodLength" 
     269IGCM_post_CheckModuloFrequency PeriodPack config_UserChoices_PeriodLength NbPeriodPerFrequency 
     270# ------------------------------------------------------------------ 
     271# Test if all was right before proceeding further 
     272# ------------------------------------------------------------------ 
     273IGCM_debug_Verif_Exit_Post 
     274 
     275IGCM_debug_Print 1 "We must process ${NbPeriodPerFrequency} files for each pack" 
     276 
    268277# Init loop 
    269278date_begin_pack=${DateBegin} 
     
    304313          fi 
    305314        done 
     315 
     316        if [ ! ${nbfile} = ${NbPeriodPerFrequency} ] ; then 
     317          IGCM_debug_Print 1 "Number of files to process is not equal to what it should be" 
     318          IGCM_debug_Print 1 "We found ${nbfiles} files and it should have been ${NbPeriodPerFrequency} files" 
     319          IGCM_debug_Exit "ERROR in number of files to process. STOP HERE INCLUDING THE COMPUTING JOB" 
     320          IGCM_debug_Verif_Exit 
     321        fi 
     322 
    306323        # Select list of variables to work with 
    307324        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 ',' ) 
Note: See TracChangeset for help on using the changeset viewer.