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_ada.ksh

    r1258 r1272  
    12561256  IGCM_debug_PopStack "IGCM_sys_ListJobInQueue" 
    12571257} 
     1258 
     1259#D-#================================================== 
     1260#D-function IGCM_sys_atlas 
     1261#D-* Purpose: encapsulate atlas call so as to manage error code and curie specificity 
     1262#D-* Examples: 
     1263#D- 
     1264function IGCM_sys_atlas { 
     1265  IGCM_debug_PushStack "IGCM_sys_atlas" $@ 
     1266  if ( $DEBUG_sys ) ; then 
     1267    echo "IGCM_sys_atlas :" $@ 
     1268  fi 
     1269 
     1270  typeset status 
     1271 
     1272  \atlas $@ > ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 2>&1 
     1273  status=$? 
     1274  if [ ${status} -gt 0 ] ; then 
     1275    echo "IGCM_sys_atlas : error code ${status}" 
     1276    cat ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 
     1277    \rm ${OUTCOMMAND_PATH}/out_command_${LOGIN}.$$ 
     1278    IGCM_debug_PopStack "IGCM_sys_atlas" 
     1279    return 1 
     1280  else 
     1281    IGCM_debug_PopStack "IGCM_sys_atlas" 
     1282    return 0 
     1283  fi 
     1284 
     1285  IGCM_debug_PopStack "IGCM_sys_atlas" 
     1286} 
     1287 
Note: See TracChangeset for help on using the changeset viewer.