- Timestamp:
- 2015-08-03T21:34:03+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh
r5644 r5664 6 6 ## Set defaults 7 7 ##--------------------------------------------------- 8 NEMO_TRUS=$ ( pwd )9 DEBUG=0; PUBLISH=0 10 I_MODULE=0 ## No 'module' commandby default11 ST='FAILED' ## 'FAILED' "" " " 8 NEMO_TRUS=$PWD 9 DEBUG=0; PUBLISH=0; 10 I_MODULE=0; ST='FAILED' ## No 'module' command & 'FAILED' status by default 11 xios_full='--full'; stderr_redir='>&' ## DEBUG options 12 12 13 13 ## Get options for replacing some initials settings … … 45 45 ## Summary of trusting test context 46 46 ##--------------------------------------------------- 47 printf "\ 47 printf "\n\ 48 48 NEMO Trusting test:\n\ 49 49 -------------------\n\ 50 50 Testing ${TEST_CONF} based on ${REFE_CONF} from ${NEMO_BRAN}\n\ 51 Configuration files: ${NEMO_USER}.cfg & ${NEMO_HPCC}.cfg\n" 51 NEMO installation: ${NEMO_USER}\n\ 52 Computing architecture: ${NEMO_HPCC}\n" 52 53 53 54 ## Making timestamped directory with messenger files … … 75 76 print_step 'Compile XIOS' 76 77 cd ${DIR_XIOS} 77 full=''; [ $DEBUG -eq 0 ] && full='--full'78 ./make_xios $full --arch ${NEMO_HPCC} --job $NPROC >&/dev/null78 [ $DEBUG -eq 1 ] && xios_full='' && stderr_redir='>' 79 eval ./make_xios ${xios_full} --arch ${NEMO_HPCC} --job $NPROC ${stderr_redir} /dev/null 79 80 [ ! -e ${DIR_XIOS}/lib/libxios.a ] && get_out 1 80 81 … … 83 84 print_step "Compile ${REFE_CONF} configuration" 84 85 cd ${NEMO_CONF} 85 [[ -d ${TEST_CONF} && $DEBUG -eq 0 ]] && ./makenemo -n ${TEST_CONF} clean >/dev/null86 ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m ${NEMO_HPCC} -j $NPROC >&/dev/null86 [[ -d ${TEST_CONF} && $DEBUG -eq 0 ]] && eval ./makenemo -n ${TEST_CONF} clean > /dev/null 87 eval ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m ${NEMO_HPCC} -j $NPROC ${stderr_redir} /dev/null 87 88 [ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out 2 88 89 … … 114 115 print_step 'Test job state' 115 116 if [[ ! -e time.step || $( grep -q 'E R R O R' ocean.output ) ]]; then 117 echo 'Error' 116 118 comments 'E R R O R' 117 119 get_out 5 118 120 else 121 echo 'Good' 119 122 ## Get time computation 120 123 ##--------------------------------------------------- … … 127 130 ## Inspect output text files 128 131 ##--------------------------------------------------- 129 print_step 'Test ASCIIoutput files diff'132 print_step 'Test output files diff' 130 133 diff_results 131 [ "$ST" == 'FAILED' ] && get_out 8132 134 133 135 ## Inspect output NetCDF files 134 136 ##--------------------------------------------------- 135 print_step 'Test last restart NetCDFfiles diff'137 print_step 'Test last restart files diff' 136 138 diff_restart 137 [ "$ST" == 'FAILED' ] && get_out 10139 [ "$ST" == 'FAILED' ] && get_out 8 138 140 139 141 ## Get comments (ocean.output & diff model.log)
Note: See TracChangeset
for help on using the changeset viewer.