Changeset 1033 for trunk/libIGCM
- Timestamp:
- 07/29/14 16:24:50 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_create_ts
r1031 r1033 467 467 for var in $( eval echo \${LISTE_VARS_${file}[*]} ) ; do 468 468 # 469 liste_file[${#liste_file[*]}]=${file_path}/${TS_Dir}/${config_UserChoices_JobName}_${date}_${FlagDir}_${var}.nc 469 IGCM_sys_TestFileArchive ${file_path}/${TS_Dir}/${config_UserChoices_JobName}_${date}_${FlagDir}_${var}.nc 470 if [ $? = 0 ] ; then 471 liste_file[${#liste_file[*]}]=${file_path}/${TS_Dir}/${config_UserChoices_JobName}_${date}_${FlagDir}_${var}.nc 472 else 473 IGCM_debug_Print 1 "WARNING ${file_path}/${TS_Dir}/${config_UserChoices_JobName}_${date}_${FlagDir}_${var}.nc dont exist" 474 fi 470 475 # 471 476 done … … 473 478 if [ X${file} != X${NULL_STR} ] ; then 474 479 IGCM_sys_Get /l liste_file[*] ${RUN_DIR_PATH}/${comp} 475 476 # Even if some files are missing we tried to continue477 # Either ListVar in compname.card are asked but not present in original history file478 # Either a previous TS task failed479 ExitFlag=false480 480 IGCM_debug_Verif_Exit_Post 481 481 fi … … 689 689 for var in $( eval echo \${LISTE_VARS_${file}[*]} ) ; do 690 690 # 691 # We skip variables not in the first file of the list. 692 # Seems overkill to test thel all... but will do if needed 693 ncdump -hv ${var} ${liste_file_tmp[0]} > /dev/null 2>&1 694 if [ ! $? = 0 ] ; then 695 IGCM_debug_Print 1 "WARNING We skip ${var}, not present within ${liste_file_tmp[0]}" 696 continue 697 fi 698 # 691 699 if [ "${FLAG_B}" = "TRUE" ] ; then 692 700 # WE CONCATENATE WITH EXISTING FILES … … 694 702 file_out=${config_UserChoices_JobName}_${DATE_BUILD_END}_${FlagDir}_${var}.nc 695 703 IGCM_sys_ncrcat --hst -v ${liste_coord}${var} ${file1} ${liste_file_tmp[*]} ${file_out} 704 IGCM_debug_Verif_Exit_Post 696 705 # 697 706 IGCM_sys_Rm ${file1} … … 701 710 [ ! "${file1}" = "${config_UserChoices_JobName}_${DateBegin}_${DATE_FIN_JOB_B}_${FlagDir}_${var}.nc" ] && eval MENAGE \${R_OUT_${comp}}/Analyse/${TS_Dir} ${file1} ${file_out} 702 711 fi 703 704 ExitFlag=false705 712 else 706 713 # OR NOT 707 714 IGCM_sys_ncrcat --hst -v ${liste_coord}${var} ${liste_file_tmp[*]} ${config_UserChoices_JobName}_${DATE_BUILD}_${FlagDir}_${var}.nc 715 IGCM_debug_Verif_Exit_Post 708 716 fi 709 717 … … 739 747 # Put global history attribut 740 748 IGCM_sys_ncatted -Oh -a history,global,o,c,"build by libIGCM/create_ts" ${file_out_YE} 749 IGCM_debug_Verif_Exit_Post 741 750 # 742 751 eval IGCM_sys_Put_Out ${file_out_YE} \${R_OUT_${comp}}/Analyse/TS_MO_YE/${file_out_YE} … … 746 755 # 747 756 IGCM_sys_Rm ${file_out} 748 ExitFlag=false749 757 # 750 758 fi
Note: See TracChangeset
for help on using the changeset viewer.