Ignore:
Timestamp:
2015-06-19T17:40:51+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

    r5438 r5444  
    1111#--------------------------------------------------- 
    1212NEMO_TRUS=$( pwd $( dirname $0 ) ) 
    13 SVN_OPT='status' 
    14 DEBUG=0; PUBLISH=0; status='OK' 
     13DEBUG=0; PUBLISH=0; STATUS='OK' 
    1514 
    1615# Get options for replacing some initials settings 
     
    5352printf "Date\n$datestr1\n" > mesg_01_date_${CFG_USER}_${CFG_ARCH}.txt 
    5453# Only at end status will change to OK 
    55 status='FAILED' 
     54STATUS='FAILED' 
     55 
     56# SVN action on XIOS & NEMO essentials directories 
     57#--------------------------------------------------- 
     58pstep "Get NEMO SVN state with: ${SVN_OPT}" 
     59get_nemo_rev 
    5660 
    5761# Check softwares versions (source arch environment) 
     
    6064. ${ARCH_ENV} > /dev/null 
    6165get_soft_rel 
     66cat model.log 
    6267 
    63 # SVN action on XIOS & NEMO essentials directories 
     68# XIOS compiling 
    6469#--------------------------------------------------- 
    65 pstep "Get NEMO SVN state with: ${SVN_OPT}" 
    66 get_nemo_rev 
    67 exit 0 
     70pstep 'Compiling XIOS' 
     71cd ${DIR_XIOS} 
     72#./make_xios --arch $ARCH -job $NPROC >& /dev/null 
     73 
    6874# NEMO config compiled from scratch 
    6975#--------------------------------------------------- 
     
    7278#[ -d ${TEST_CONF} ] && ./makenemo -n ${TEST_CONF} clean 
    7379./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m $ARCH -j $NPROC >& /dev/null 
    74 [ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out $step $status 
     80[ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out $STEP $STATUS 
    7581 
    7682# Get namelists, xml & forced files for running 
    7783#--------------------------------------------------- 
    7884pstep 'Preparing job' 
     85cd ${TEST_DIR} 
    7986find ${NEMO_CONF}/${TEST_CONF}/EXP00 -regex '.*\(cfg\|opa\|ref\|xml\)' -exec cp {} . \; 
    8087 
     
    8693 
    8794${cmd_iol} > inputs_list.txt && ${cmd_iof} > /dev/null 
    88 [ $? -ne 0 ] && get_out $step $status 
     95[ $? -ne 0 ] && get_out $STEP $STATUS 
    8996[ $( find . -name '*.gz' -print -quit ) ] && gunzip *.gz 
    9097 
     
    93100pstep 'Test input files difference' 
    94101diff_inputs 
    95  
     102get_out $STEP $STATUS 
    96103# Job submission & computing 
    97104#--------------------------------------------------- 
    98105pstep 'Running' 
    99106job_num=$( ${JOB_SUBM} | awk '{print $NF}' ) 
    100 [ $? -ne 0 ] && get_out $step $status 
     107[ $? -ne 0 ] && get_out $STEP $STATUS 
    101108 
    102109time_elapsed=0; time_increment=30 
     
    115122if   [[ ! -f ocean.output || $( grep 'E R R O R' ocean.output ) ]]; then 
    116123    ${JOB_DELE} ${job_num} &> /dev/null 
    117     [ ! -f ocean.output                  ] && step='nemo.exe crashed at initialization' 
    118     [ $( grep 'E R R O R' ocean.output ) ] && step='nemo.exe crashed' 
     124    [ ! -f ocean.output                  ] && STEP='nemo.exe crashed at initialization' 
     125    [ $( grep 'E R R O R' ocean.output ) ] && STEP='nemo.exe crashed' 
    119126    comments('E R R O R') 
    120127    ${JOB_DELE} ${job_num} >/dev/null 2>&1 
    121     status='FAILED' 
    122     get_out $step $status 
     128    STATUS='FAILED' 
     129    get_out $STEP $STATUS 
    123130else 
    124     status='OK' 
     131    STATUS='OK' 
    125132 
    126133    # Inspect output text files 
     
    129136    for file in ocean.output solver.stat tracer.stat; do 
    130137   diff $file ${REFE_DIR}/$file 
    131    [ $? -ne 0 ] && status='FAILED' 
     138   [ $? -ne 0 ] && STATUS='FAILED' 
    132139    done 
    133140 
     
    136143    pstep 'Test last restart NetCDF files diff' 
    137144    diff_restart #2> /dev/null 
    138     [ $? -ne 0 ] && status='FAILED' 
     145    [ $? -ne 0 ] && STATUS='FAILED' 
    139146 
    140147    # Get computation duration 
     
    148155# End 
    149156#--------------------------------------------------- 
    150 if [ $status == 'FAILED' ]; then step='Test outputs difference'; else step='Code is reliable'; fi 
    151 get_out $step $status 
     157if [ $STATUS == 'FAILED' ]; then STEP='Test outputs difference'; else STEP='Code is reliable'; fi 
     158get_out $STEP $STATUS 
Note: See TracChangeset for help on using the changeset viewer.