Changeset 5483
- Timestamp:
- 2015-06-24T19:26:17+02:00 (9 years ago)
- Location:
- branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/config/X64_CURIE.cfg
r5472 r5483 1 # Curie super-computerconfiguration1 # Curie configuration 2 2 3 3 # Available softwares: … … 10 10 JOB_SUBM="ccc_msub ${NEMO_TRUS}/batch/${CFG_ARCH}.sh | awk '{print \$NF}'" 11 11 JOB_LIST=ccc_mpp 12 JOB_ VIEW=ccc_macct13 JOB_ RCPU="${JOB_VIEW} ${JOB_ID} |awk 'END{print \$9}'"12 JOB_INFO=ccc_macct 13 JOB_TIME="awk 'END{print \$9}'" 14 14 JOB_DELE=ccc_mdel 15 15 -
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/config/arch_template.cfg
r5472 r5483 18 18 JOB_LIST='' # List all submitted jobs (to determine by `grep` if a job completed or not) 19 19 JOB_INFO='' # Get job informations with job ID as argument (filling a computation log) 20 JOB_TIME='' # Get real CPU time computation "" " "" "" ""21 # ex: " ${JOB_VIEW} ${JOB_ID} | awk 'END{print \$9}'"22 JOB_DELE='' # Kill submitted job "" " "" "" ""20 JOB_TIME='' # Get real CPU time computation with `eval "${JOB_INFO} ${JOB_ID} | ${JOB_TIME}"` 21 # ex: "awk '/opa/ END{print \$9}'" 22 JOB_DELE='' # Kill submitted job with job ID as argument 23 23 24 24 # Compiling & computing settings -
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh
r5472 r5483 6 6 NEMO_TRUS=$( pwd $( dirname $0 ) ) 7 7 DEBUG=0; PUBLISH=0 8 STATUS='FAILED'; STEP='' # Only at end status will change to OK8 STATUS='FAILED'; STEP='' # 'FAILED' by default 9 9 10 10 # Get options for replacing some initials settings … … 100 100 #--------------------------------------------------- 101 101 print_step 'Test job state' 102 if [[ ! -e ocean.output || $( grep 'E R R O R' ocean.output ) ]]; then 102 if [[ $( diff time.step ${REFE_DIR}/time.step ) || \ 103 ! -e ocean.output || $( grep 'E R R O R' ocean.output ) ]]; then 103 104 comments 'E R R O R' 104 105 get_out $STATUS $STEP … … 110 111 fi 111 112 112 STATUS='OK' 113 STATUS='OK' # 'OK' by default 113 114 # Inspect output text files 114 115 #--------------------------------------------------- -
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting_func.sh
r5472 r5483 7 7 if [ "$state" == 'E R R O R' ]; then 8 8 if [ -e ocean.output ]; then 9 last_time_step=$( cat ${TEST_DIR}/time.step | tr -d [:space:] )9 last_time_step=$( cat time.step | tr -d [:space:] ) 10 10 STEP='nemo.exe crashed at '${last_time_step} && export STEP 11 11 line=$( grep -m1 -A5 "$state" ocean.output | tr -d '\n' ) … … 38 38 echo 'Last time step of standard run: '${last_time_step} 39 39 40 if [ $( find ${TEST_DIR}-name "*${last_time_step}_restart*.nc" -print -quit ) ]; then41 base_name=$( find ${TEST_DIR} -name "*${last_time_step}_restart*.nc" -print -quit\42 | awk -F/ '{print $NF}' | sed "s/^\(.*\)$last_time_step.*/\1$last_time_step/")40 if [ $( find -name "*${last_time_step}_restart*.nc" -print -quit ) ]; then 41 base_name=$( find -name "*${last_time_step}_restart*.nc" -print -quit | awk -F/ '{print $NF}' \ 42 | sed "s/^\(.*\)$last_time_step\_restart.*/\1$last_time_step\_/" ) 43 43 44 44 for comp in restart restart_ice restart_trc; do 45 file=${base_name} '_'${comp} && printf "$file'.nc': "46 47 nb_dom=$( find ${TEST_DIR}-name "${file}_[0-9]*.nc" | wc -l | awk '{print $1}' )45 file=${base_name}${comp} && printf "$file'.nc': " 46 47 nb_dom=$( find -name "${file}_[0-9]*.nc" | wc -l | awk '{print $1}' ) 48 48 if [ ${nb_dom} -gt 1 ]; then 49 ${NEMO_TRBD}/rebuild_nemo -t $NPROC $file ${nb_dom} > /dev/null 49 ${NEMO_TRBD}/rebuild_nemo -t $NPROC $file ${nb_dom} > /dev/null 50 [ $? -eq 0 ] && rm -f ${base_name}_${comp}_[0-9]*.nc > /dev/null 50 51 fi 51 52 52 53 # UNIX `cmp` not suitable (filename & timestamp in .nc file) 53 nc_diff=$( $CDO diffn $ {TEST_DIR}/$file'.nc' ${REFE_DIR}/$file'.nc' 2> /dev/null | tail -1 )54 nc_diff=$( $CDO diffn $file'.nc' ${REFE_DIR}/$file'.nc' 2> /dev/null | tail -1 ) 54 55 if [ ! -z "${nc_diff}" ]; then 55 56 export STATUS='FAILED' STEP='Restart files different' … … 59 60 fi 60 61 61 rm -f ${TEST_DIR}/${base_name}_${comp}_[0-9]*.nc &> /dev/null62 62 done 63 63 … … 69 69 } 70 70 71 diff_textfiles() { 72 for file in ocean.output $( ls *.stat ); do 73 diff $file ${REFE_DIR}/$file 74 [ $? -ne 0 ] && export STATUS='FAILED' STEP='ASCII output file diff' 75 done 76 } 77 71 78 get_cpu_time() { 72 real_cpu_time=$( eval ${JOB_TIME})79 real_cpu_time=$( eval "${JOB_INFO} ${JOB_ID} | ${JOB_TIME}" ) 73 80 printf "Real CPU time\n${real_cpu_time}\n" | tee mesg_10_realcputime_${CFG_USER}_${CFG_ARCH}.txt 74 81 } … … 83 90 ${cmd_iol} > inputs_list.txt 84 91 ${cmd_iof} > /dev/null 85 }86 87 diff_textfiles() {88 for file in ocean.output $( ls *.stat ); do89 diff $file ${REFE_DIR}/$file90 [ $? -ne 0 ] && export STATUS='FAILED' STEP='ASCII output file diff'91 done92 92 } 93 93 … … 220 220 if [ ${time_elapsed} -eq ${TIME_LIMI} ]; then 221 221 STEP='Exceeded time limit' 222 223 if [ $( ${JOB_LIST} | grep ${JOB_ID} ) ]; then 224 STEP='Job not finished on time: '$(( ${TIME_LIMI}/3600 ))'h' 225 fi 226 222 [ $( ${JOB_LIST} | grep ${JOB_ID} ) ] && STEP='Job not finished on time: '$(( ${TIME_LIMI}/3600 ))'h' 227 223 print_step 228 224 ${JOB_DELE} ${JOB_ID} &> /dev/null
Note: See TracChangeset
for help on using the changeset viewer.