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

Ignore:
Timestamp:
2015-11-26T16:55:09+01:00 (8 years ago)
Author:
nicolasmartin
Message:

dev_r5092_CNRS18_TRUST Last commits before merging to trunk

File:
1 edited

Legend:

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

    r5809 r5929  
    3333##--------------------------------------------------- 
    3434if [[ ! -e config/${TRUS_USER}.cfg || ! -e config/${TRUS_HPCC}.cfg || ${TRUS_HELP} -eq 1 ]]; then 
    35     cat trusting_help.txt 
     35    cat ./inc/trusting_help.txt 
    3636 
    3737    if [ ${TRUS_HELP} -eq 0 ]; then 
     
    4747    exit 1 
    4848else 
    49     . trusting.env && . trusting_func.sh 
    50 #echo $WRAPPER_LDFLAGS 
     49    . ./inc/trusting.env && . ./inc/trusting_func.sh 
     50 
    5151    ## DEBUG option to speed up & expand verbosity of compilation 
    5252    [ ${TRUS_DBUG} -eq 1 ] && { set -vx; xios_mode=''; stdout_redir='>'; } 
     
    6767##--------------------------------------------------- 
    6868echo 
    69 if [ -t 0 ]; then cat banner.txt; else cat banner.html; fi 
     69if [ -t 0 ]; then cat ./inc/banner.txt; else cat ./inc/banner.html; fi 
    7070echo 
    7171echo '****************************************************************************************************' 
     
    7676echo '****************************************************************************************************' 
    7777echo 
    78 echo '  - Testing configuration   '${TRUS_CONF}' based on '${TRUS_REFE} 
    79 echo '  - SVN working copy        '${TRUS_WORK}/${TRUS_BRAN} 
    80 echo '  - Benchmark folder        '${TRUS_BHMK} 
    81 echo '  - (Super)Computer         '${TRUS_HPCC} 
    82 echo '  - User installation       '${TRUS_USER} 
    83 echo 
     78printf "\t§ Testing configuration\t\t%s based on %s\n" ${TRUS_CONF} ${TRUS_REFE} 
     79printf "\t§ SVN working copy\t\t%s/%s\n"               ${TRUS_WORK} ${TRUS_BRAN} 
     80printf "\t§ Benchmark folder\t\t%s\n"               ${TRUS_STOR} 
     81printf "\t§ (Super)Computer\t\t%s\n"             ${TRUS_HPCC} 
     82printf "\t§ User installation\t\t%s\n\n"         ${TRUS_USER} 
    8483 
    8584 
     
    8786##--------------------------------------------------- 
    8887print_step 'Timestamped testing directory' 
    89 mkdir -p ${TRUS_TEST} ${TRUS_BHMK} 
    90 cd       ${TRUS_TEST} 
    91 echo     ${TRUS_TEST} 
     88mkdir -p ${TRUS_SCRA} ${TRUS_STOR} 
     89cd       ${TRUS_SCRA} 
     90echo     ${TRUS_SCRA} 
    9291init_files 
    9392get_date 
     
    104103print_step 'Get testing environement' 
    105104get_soft_rel 
    106 cat model.log 
     105cat model.log | awk '{printf "%-20s %s %s\n", $1, $2, $3}' 
    107106env | sort > env.log 
    108 #echo $WRAPPER_LDFLAGS 
     107 
    109108 
    110109## XIOS compilation from scratch 
     
    135134##--------------------------------------------------- 
    136135print_step 'Set job (copying or extracting inputs)' 
    137 cd ${TRUS_TEST} 
     136cd ${TRUS_SCRA} 
     137get_inputs 
     138[ $? -ne 0 ] && get_out 3 || echo 'Success' 
    138139cp   ${TRUS_NGCM}/CONFIG/${TRUS_CONF}/cpp_* . 
    139140find ${TRUS_NGCM}/CONFIG/${TRUS_CONF}/EXP00 -regex '.*\(_cfg\|.in\|opa\|_ref\|.xml\)' \ 
    140141                                            -exec  cp {} . \; 
    141 get_inputs 
    142 [ $? -ne 0 ] && get_out 3 || echo 'Success' 
    143 [ $( find . -name '*.gz' -print -quit ) ] && find . -name '*.gz' -exec gunzip {} \; 
    144142 
    145143 
     
    153151##--------------------------------------------------- 
    154152print_step 'Submit job' 
    155 JOB_ID=$( eval ${TRUS_JSUB} ) 
    156 [ $? -ne 0 ] && get_out 4 || echo 'Success (job ID '${JOB_ID}')' 
     153cp ${TRUS_DIRE}/batch/${TRUS_JSPT} ${TRUS_SCRA} ## Copy the submitting script to testing folder 
     154TRUS_JIDN=$( eval ${TRUS_JSUB} ) 
     155[ $? -ne 0 ] && get_out 4 || printf "Success (job ID %s)\n" ${TRUS_JIDN} 
    157156print_step 'Pending job' 
    158157job_pending 
     
    163162##--------------------------------------------------- 
    164163print_step 'Test job state' 
    165 [[ ! -e time.step || $( grep 'E R R O R' ocean.output ) ]] && get_out 5 || echo 'Success' 
     164[[ ! -e time.step || $( grep 'E R R O R' ocean.output ) ]] && get_out 5 || echo 'Success' ## Must be reviewed 
    166165print_step 'Get job performances' 
    167166get_time 
Note: See TracChangeset for help on using the changeset viewer.