Ignore:
Timestamp:
2015-06-19T20:51:04+02:00 (5 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

    r5452 r5453  
    3131if [[ ! -z "${CFG_ARCH}" && ! -z "${CFG_USER}" ]]; then 
    3232 
    33     if   [ ! $( find ${NEMO_TRUS}/cfg -name ${CFG_USER}.cfg ) ]; then 
    34    echo 'No configuration file in '${NEMO_TRUS}'/cfg for '${CFG_USER}; exit 1 
    35     elif [ ! $( find ${NEMO_TRUS}/cfg -name ${CFG_ARCH}.cfg ) ]; then 
    36    echo 'No configuration file in '${NEMO_TRUS}'/cfg for '${CFG_ARCH}; exit 1 
     33    if   [ ! $( find ${NEMO_TRUS}/config -name ${CFG_USER}.cfg ) ]; then 
     34   echo 'No configuration file in '${NEMO_TRUS}'/config for '${CFG_USER}; exit 1 
     35    elif [ ! $( find ${NEMO_TRUS}/config -name ${CFG_ARCH}.cfg ) ]; then 
     36   echo 'No configuration file in '${NEMO_TRUS}'/config for '${CFG_ARCH}; exit 1 
    3737    else 
    3838   . ${NEMO_TRUS}/trusting.env 
     
    5252printf "Date\n$datestr1\n" > mesg_01_date_${CFG_USER}_${CFG_ARCH}.txt 
    5353# Only at end status will change to OK 
    54 STATUS='FAILED' 
     54STATUS='FAILED'; STEP='' 
    5555 
    5656# SVN action on XIOS & NEMO essentials directories 
     
    6464. ${ARCH_ENV} > /dev/null 
    6565get_soft_rel 
    66 cat model.log 
     66cat env.log 
    6767 
    6868# XIOS compiling 
     
    7878#[ -d ${TEST_CONF} ] && ./makenemo -n ${TEST_CONF} clean 
    7979./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m $ARCH -j $NPROC >& /dev/null 
    80 [ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out $STEP $STATUS 
     80[ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out $STATUS $STEP 
    8181 
    8282# Get namelists, xml & forced files for running 
     
    9393 
    9494${cmd_iol} > inputs_list.txt && ${cmd_iof} > /dev/null 
    95 [ $? -ne 0 ] && get_out $STEP $STATUS 
     95[ $? -ne 0 ] && get_out $STATUS $STEP 
    9696[ $( find . -name '*.gz' -print -quit ) ] && gunzip *.gz 
    9797 
     
    104104#--------------------------------------------------- 
    105105print_step 'Running' 
    106 export JOB_ID=$( ${JOB_SUBM} | awk '{print $NF}' ) 
    107 [ $? -ne 0 ] && get_out $STEP $STATUS 
     106JOB_ID=$( ${JOB_SUBM} | awk '{print $NF}' ) 
     107export JOB_ID 
     108[ $? -ne 0 ] && get_out $STATUS $STEP 
    108109 
    109110time_elapsed=0; time_increment=30 
     
    111112while [[ $( ${JOB_LIST} | grep ${JOB_ID} ) && ${time_elapsed} -lt ${TIME_LIMI} ]]; do 
    112113    printf "\n####################################################" >> computation.log 
    113     ${JOB_VIEW} ${JOB_ID}                                          >> computation.log 
     114    ${JOB_VIEW} ${JOB_ID}                                           >> computation.log 
    114115    sleep ${time_increment} 
    115116    let time_elapsed+=${time_increment} 
     
    122123if   [[ ! -e ocean.output || $( grep 'E R R O R' ocean.output ) ]]; then 
    123124    ${JOB_DELE} ${JOB_ID} &> /dev/null 
    124     [ ! -e ocean.output                  ] && STATUS='nemo.exe crashed at initialization' 
    125     [ $( grep 'E R R O R' ocean.output ) ] && STATUS='nemo.exe crashed' 
    126     comments('E R R O R') 
     125    [ ! -e ocean.output                  ] && STEP='nemo.exe crashed at initialization' 
     126    [ $( grep 'E R R O R' ocean.output ) ] && STEP='nemo.exe crashed' 
     127    comments 'E R R O R' 
    127128    ${JOB_DELE} ${JOB_ID} >/dev/null 2>&1 
    128     get_out $STEP $STATUS 
     129    get_out $STATUS $STEP 
    129130else 
    130131    STATUS='OK' 
     
    135136    for file in ocean.output solver.stat tracer.stat; do 
    136137   diff $file ${REFE_DIR}/$file 
    137    [ $? -ne 0 ] && STATUS='At least 1 ASCII output file differ' 
     138   [ $? -ne 0 ] && STATUS='FAILED' && STEP='ASCII output file differ' 
    138139    done 
    139140 
     
    142143    print_step 'Test last restart NetCDF files diff' 
    143144    diff_restart #2> /dev/null 
    144     [ $? -ne 0 ] && STATUS='At least 1 restart .nc file differ' 
    145  
    146     # Check super-computing architecture modification 
    147     #--------------------------------------------------- 
    148     print_step 'Test super-computing architecture change' 
    149     diff_arch 
    150     [ $? -ne 0 ] && STATUS='At least 1 restart .nc file differ' 
     145    [ $? -ne 0 ] && STATUS='FAILED' 
    151146 
    152147    # Get computation duration 
     
    155150    get_cpu_time 
    156151 
    157     comments('W A R N I N G') 
     152    comments 'W A R N I N G' 
    158153fi 
    159154 
     
    161156#--------------------------------------------------- 
    162157[ $STATUS == 'OK' ] && STEP='Code is reliable' 
    163 get_out $STEP $STATUS 
     158get_out $STATUS $STEP 
Note: See TracChangeset for help on using the changeset viewer.