Changeset 433
- Timestamp:
- 04/06/11 16:11:19 (13 years ago)
- Location:
- trunk/libIGCM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_job
r432 r433 458 458 IGCM_debug_Exit "EXECUTABLE" 459 459 IGCM_sys_Cp ${Exe_Output} ${SUBMIT_DIR}/${PREFIX}_${Exe_Output}_error 460 ExecutionFail=true 460 461 fi 461 462 echo >> ${Exe_Output} -
trunk/libIGCM/libIGCM_comp/libIGCM_comp.ksh
r431 r433 820 820 typeset compactoutputs 821 821 822 compactoutputs=false 823 if [ X${JobType} != XRUN ] ; then 824 compactoutputs=true 825 elif [ X${config_UserChoices_CompactText} != Xn ] ; then 826 compactoutputs=true 827 fi 828 822 829 for comp in ${config_ListOfComponents[*]} ; do 823 830 # Define component … … 1042 1049 eval NbFiles=\${#${ListTextName}[@]} > /dev/null 2>&1 1043 1050 1044 compactoutputs=false1045 1046 1051 (( i=0 )) 1047 1052 until [ $i -eq $NbFiles ]; do … … 1053 1058 nlist_file=${#list_file[@]} 1054 1059 if [ ${nlist_file} -gt 1 ] ; then 1055 if [ X${JobType} != XRUN ] ; then1056 compactoutputs=true1057 elif [ X${config_UserChoices_CompactText} != Xn ] ; then1058 compactoutputs=true1059 fi1060 1061 1060 if ( ${compactoutputs} ) ; then 1062 1061 eval file_out=${PREFIX}_${file_in} … … 1082 1081 eval IGCM_sys_Put_Out ${file_out} \${R_OUT_${comp}_D}/${file_out} 1083 1082 eval FileToBeDeleted[${#FileToBeDeleted[@]}]="${file_out}" > /dev/null 2>&1 1083 1084 if ( $ExecutionFail && [ X$( echo ${file_out} | grep "_out" ) != X ] ) ; then 1085 IGCM_sys_Cp ${file_out} ${SUBMIT_DIR} 1086 fi 1084 1087 else 1085 1088 for file in ${list_file[@]} … … 1088 1091 eval FileToBeDeleted[${#FileToBeDeleted[@]}]="${file}" > /dev/null 2>&1 1089 1092 done 1093 if ( $ExecutionFail && [ X$( echo ${file} | grep "_out" ) != X ] ) ; then 1094 IGCM_sys_Cp ${file} ${SUBMIT_DIR}/${PREFIX}_${file} 1095 fi 1090 1096 fi 1091 1097 else … … 1095 1101 eval IGCM_sys_Put_Out ${file_in} \${R_OUT_${comp}_D}/${PREFIX}_${file_in} 1096 1102 [ $? -eq 0 ] && eval FileToBeDeleted[${#FileToBeDeleted[@]}]="${file_in}" > /dev/null 2>&1 1103 1104 if ( $ExecutionFail && [ X$( echo ${file_in} | grep "_out" ) != X ] ) ; then 1105 IGCM_sys_Cp ${file_in} ${SUBMIT_DIR}/${PREFIX}_${file_in} 1106 fi 1097 1107 fi 1098 1108 done
Note: See TracChangeset
for help on using the changeset viewer.