Ignore:
Timestamp:
2015-07-03T18:42:48+02:00 (5 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS_SETTE Bugfixe

File:
1 edited

Legend:

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

    r5543 r5545  
    6464                 | awk '/records/ {print $1}'                           ) 
    6565 
    66       if [ ${nc_diff} -ne 0 ]; then 
     66      if [[ ! -z ${nc_diff} && ${nc_diff} -ne 0 ]]; then 
    6767          export ST='FAILED' 
    6868          printf "$CDO ${nc_diff}\n" 
     
    197197 
    198198    if [ "$ST" == 'FAILED' ]; then 
    199    if [ ! -e mesg_09_inputs_${CFG_USER}_${CFG_ARCH}.txt ]; then 
    200        printf "Input files\n\n"   > mesg_09_inputs_${CFG_USER}_${CFG_ARCH}.txt 
    201    fi 
    202  
    203    if [ ! -e mesg_10_cputime_${CFG_USER}_${CFG_ARCH}.txt ]; then 
    204        printf "Real CPU time\n\n" > mesg_10_cputime_${CFG_USER}_${CFG_ARCH}.txt 
    205    fi 
    206  
    207    if [ ! -e mesg_11_comments_${CFG_USER}_${CFG_ARCH}.txt ]; then 
    208        printf "Comments\n\n"      > mesg_11_comments_${CFG_USER}_${CFG_ARCH}.txt 
    209    fi 
     199   file=mesg_09_inputs_${CFG_USER}_${CFG_ARCH}.txt 
     200   [ ! -e $file ] && printf "Input files\n\n"   > $file 
     201   file=mesg_10_cputime_${CFG_USER}_${CFG_ARCH}.txt 
     202   [ ! -e $file ] && printf "Real CPU time\n\n" > $file 
     203   file=mesg_11_comments_${CFG_USER}_${CFG_ARCH}.txt 
     204   [ ! -e $file ] && printf "Comments\n\n"      > $file 
    210205 
    211206        # Error identification 
Note: See TracChangeset for help on using the changeset viewer.