New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 5472 for branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh – NEMO

Ignore:
Timestamp:
2015-06-24T15:12:16+02:00 (9 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS_SETTE Ping pong updates between Curie & Ada to finalize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh

    r5465 r5472  
    5555#--------------------------------------------------- 
    5656print_step 'Get softwares release' 
    57 . ${ARCH_ENV} > /dev/null 
     57[ -e ${ARCH_ENV} ] && . ${ARCH_ENV} > /dev/null 
    5858get_soft_rel 
    5959cat model.log 
     
    9191#--------------------------------------------------- 
    9292print_step 'Submitting job' 
    93 JOB_ID=$( ${JOB_SUBM} | awk '{print $NF}' ) 
     93JOB_ID=$( eval ${JOB_SUBM} ) 
    9494[ $? -ne 0 ] && get_out $STATUS $STEP 
    9595print_step 'Holding-Running job' 
     
    9797print_step 'Job finished' 
    9898 
    99 # Eventual crash during computing 
     99# Job state 
    100100#--------------------------------------------------- 
    101 print_step 'Test if job crashed' 
     101print_step 'Test job state' 
    102102if   [[ ! -e ocean.output || $( grep 'E R R O R' ocean.output ) ]]; then 
    103103    comments 'E R R O R' 
    104104    get_out $STATUS $STEP 
     105else 
     106    # Get time computation 
     107    #--------------------------------------------------- 
     108    print_step 'Get real CPU time' 
     109    get_cpu_time 
    105110fi 
    106111 
     
    110115print_step 'Test ASCII output files diff' 
    111116diff_textfiles 
    112 if [ "$STATUS" == 'FAILED' ] && get_out $STATUS $STEP 
     117[ "$STATUS" == 'FAILED' ] && get_out $STATUS $STEP 
    113118 
    114119# Inspect output NetCDF files 
     
    116121print_step 'Test last restart NetCDF files diff' 
    117122diff_restart 
    118 if [ "$STATUS" == 'FAILED' ] && get_out $STATUS $STEP 
    119  
    120 # Get computation duration 
    121 #--------------------------------------------------- 
    122 print_step 'Get real CPU time' 
    123 get_cpu_time 
     123[ "$STATUS" == 'FAILED' ] && get_out $STATUS $STEP 
    124124 
    125125# Get comments (ocean.output & diff model.log) 
Note: See TracChangeset for help on using the changeset viewer.