Changeset 653
- Timestamp:
- 04/16/12 10:17:06 (12 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_pack_output
r647 r653 315 315 fi 316 316 done 317 318 if [ ! ${nbfile} = ${NbPeriodPerFrequency} ] ; then319 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_Exit323 fi324 325 317 # Select list of variables to work with 326 318 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 ',' ) … … 328 320 # Create packed files 329 321 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 330 328 output=${JobName}_${date_begin_pack}_${date_end_pack}_${myType} 331 329 #cat liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt | xargs ncrcat -v ${list_var} -o ${output} … … 352 350 #mv liste_pack_${myType}_${date_begin_pack}_${date_end_pack}.txt ${STORE_DEBUG} 353 351 IGCM_debug_Print 1 "Ncrcat and cleaning done for ${dir} and ${myType}" 352 echo 354 353 done 355 354 done -
trunk/libIGCM/AA_pack_restart
r647 r653 331 331 extract_date_file=$( echo ${file} | sed -e "s/.*${JobName}_//" ) 332 332 date_file=$( echo ${extract_date_file} | sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 333 #warning demenagement. delete last restart of the previous pack333 # warning demenagement. delete last restart of the previous pack 334 334 [ ${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} 336 336 if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 337 337 echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt 338 #warning demenagement. do not delete last restart of this pack338 # warning demenagement. do not delete last restart of this pack 339 339 [ ${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} ] ; then342 # break343 340 fi 344 341 done -
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r651 r653 1006 1006 ;; 1007 1007 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" 1009 1009 IGCM_post_Configure 1010 1010 ;; 1011 1011 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" 1013 1013 IGCM_post_Configure 1014 1014 ;; -
trunk/libIGCM/libIGCM_post/libIGCM_post.ksh
r639 r653 41 41 fi 42 42 # 43 if ( [ X${TimeSeries} = Xtrue ] || [ X${TimeSeries2D} = Xtrue ] || [ X${TimeSeries3D} = Xtrue ] ) ; then43 if ( [ X${TimeSeries} = Xtrue ] || [ X${TimeSeries2D} = Xtrue ] || [ X${TimeSeries3D} = Xtrue ] || [ X${TimeSeriesChunck2D} = Xtrue ] || [ X${TimeSeriesChunck3D} = Xtrue ] ) ; then 44 44 list_post="${list_post} TimeSeriesFrequency" 45 45 fi … … 86 86 fi 87 87 # 88 IGCM_debug_Print 1 "${post_freq} flag value : ${RebuildFrequency}"88 eval IGCM_debug_Print 1 "${post_freq} flag value : \${${post_freq}}" 89 89 done 90 90 # 91 91 IGCM_debug_Print 2 "POST-TREATEMENT flag value : ${POST}" 92 92 # 93 # Prepare headers for the shell dedicated to offline rebuild94 if ( [ ${PackFrequency} = true ] && ( [ ${TimeSeriesFrequency} = true ] || [ ${ TimeSeriesFrequency} = true ] ) ) ; then93 # Prepare headers for the shell dedicated to post-processing 94 if ( [ ${PackFrequency} = true ] && ( [ ${TimeSeriesFrequency} = true ] || [ ${SeasonalFrequency} = true ] ) ) ; then 95 95 if [ $DRYRUN -le 1 ]; then 96 96 echo "#!/bin/ksh " > ${R_BUFR}/FlushPost_${PeriodDateEnd}.ksh
Note: See TracChangeset
for help on using the changeset viewer.