Ignore:
Timestamp:
11/20/15 12:30:22 (9 years ago)
Author:
mafoipsl
Message:

Add a system function IGCM_sys_atlas specially adapted on curie (bug ksh) and allowing error discovery for all systems.
Use IGCM_sys_atlas funcion in AA_atlas jobs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_default.ksh

    r1244 r1272  
    11531153  IGCM_debug_PopStack "IGCM_sys_CountJobInQueue" 
    11541154} 
     1155 
     1156#D-#================================================== 
     1157#D-function IGCM_sys_atlas 
     1158#D-* Purpose: encapsulate atlas call so as to manage error code and curie specificity 
     1159#D-* Examples: 
     1160#D- 
     1161function IGCM_sys_atlas { 
     1162  IGCM_debug_PushStack "IGCM_sys_atlas" $@ 
     1163  if ( $DEBUG_sys ) ; then 
     1164    echo "IGCM_sys_atlas :" $@ 
     1165  fi 
     1166 
     1167  typeset status 
     1168 
     1169  \atlas $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 
     1170  status=$? 
     1171  if [ ${status} -gt 0 ] ; then 
     1172    echo "IGCM_sys_atlas : error code ${status}" 
     1173    cat ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 
     1174    \rm ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 
     1175    IGCM_debug_PopStack "IGCM_sys_atlas" 
     1176    return 1 
     1177  else 
     1178    IGCM_debug_PopStack "IGCM_sys_atlas" 
     1179    return 0 
     1180  fi 
     1181 
     1182  IGCM_debug_PopStack "IGCM_sys_atlas" 
     1183} 
     1184 
Note: See TracChangeset for help on using the changeset viewer.