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 5664 for branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh – NEMO

Ignore:
Timestamp:
2015-08-03T21:34:03+02:00 (9 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS_SETTE Few bugfixes & improvments, clarify displayed comments

File:
1 edited

Legend:

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

    r5644 r5664  
    66## Set defaults 
    77##--------------------------------------------------- 
    8 NEMO_TRUS=$( pwd ) 
    9 DEBUG=0; PUBLISH=0 
    10 I_MODULE=0      ## No 'module' command by default 
    11 ST='FAILED'     ## 'FAILED'            ""   " "   
     8NEMO_TRUS=$PWD 
     9DEBUG=0; PUBLISH=0; 
     10I_MODULE=0; ST='FAILED' ## No 'module' command & 'FAILED' status by default 
     11xios_full='--full'; stderr_redir='>&' ## DEBUG options 
    1212 
    1313## Get options for replacing some initials settings 
     
    4545## Summary of trusting test context 
    4646##--------------------------------------------------- 
    47 printf "\ 
     47printf "\n\ 
    4848NEMO Trusting test:\n\ 
    4949-------------------\n\ 
    5050Testing ${TEST_CONF} based on ${REFE_CONF} from ${NEMO_BRAN}\n\ 
    51 Configuration files: ${NEMO_USER}.cfg & ${NEMO_HPCC}.cfg\n" 
     51NEMO installation: ${NEMO_USER}\n\ 
     52Computing architecture: ${NEMO_HPCC}\n" 
    5253 
    5354## Making timestamped directory with messenger files 
     
    7576print_step 'Compile XIOS' 
    7677cd ${DIR_XIOS} 
    77 full=''; [ $DEBUG -eq 0 ] && full='--full' 
    78 ./make_xios $full --arch ${NEMO_HPCC} --job $NPROC >& /dev/null 
     78[ $DEBUG -eq 1 ] && xios_full='' && stderr_redir='>' 
     79eval ./make_xios ${xios_full} --arch ${NEMO_HPCC} --job $NPROC ${stderr_redir} /dev/null 
    7980[ ! -e ${DIR_XIOS}/lib/libxios.a ] && get_out 1 
    8081 
     
    8384print_step "Compile ${REFE_CONF} configuration" 
    8485cd ${NEMO_CONF} 
    85 [[ -d ${TEST_CONF} && $DEBUG -eq 0 ]] && ./makenemo -n ${TEST_CONF} clean >  /dev/null 
    86 ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m ${NEMO_HPCC} -j $NPROC      >& /dev/null 
     86[[ -d ${TEST_CONF} && $DEBUG -eq 0 ]] && eval ./makenemo -n ${TEST_CONF} clean >               /dev/null 
     87eval ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m ${NEMO_HPCC} -j $NPROC      ${stderr_redir} /dev/null 
    8788[ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out 2 
    8889 
     
    114115print_step 'Test job state' 
    115116if   [[ ! -e time.step || $( grep -q 'E R R O R' ocean.output ) ]]; then 
     117    echo 'Error' 
    116118    comments 'E R R O R' 
    117119    get_out 5 
    118120else 
     121    echo 'Good' 
    119122    ## Get time computation 
    120123    ##--------------------------------------------------- 
     
    127130## Inspect output text files 
    128131##--------------------------------------------------- 
    129 print_step 'Test ASCII output files diff' 
     132print_step 'Test output files diff' 
    130133diff_results 
    131 [ "$ST" == 'FAILED' ] && get_out 8 
    132134 
    133135## Inspect output NetCDF files 
    134136##--------------------------------------------------- 
    135 print_step 'Test last restart NetCDF files diff' 
     137print_step 'Test last restart files diff' 
    136138diff_restart 
    137 [ "$ST" == 'FAILED' ] && get_out 10 
     139[ "$ST" == 'FAILED' ] && get_out 8 
    138140 
    139141## Get comments (ocean.output & diff model.log) 
Note: See TracChangeset for help on using the changeset viewer.