Changeset 5459
- Timestamp:
- 2015-06-22T14:19:53+02:00 (10 years ago)
- Location:
- branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting.sh
r5455 r5459 57 57 . ${ARCH_ENV} > /dev/null 58 58 get_soft_rel 59 cat env.log59 cat arch_env.log 60 60 61 61 # XIOS compiling … … 63 63 print_step 'Compiling XIOS' 64 64 cd ${DIR_XIOS} 65 ./make_xios --full --arch $ARCH -job $NPROC #>& /dev/null65 #./make_xios --full --arch $ARCH -job $NPROC #>& /dev/null 66 66 [ ! -e ${DIR_XIOS}/lib/libxios.a ] && get_out $STATUS $STEP 67 67 … … 70 70 print_step "Compiling ${CONF_REF} configuration" 71 71 cd ${NEMO_CONF} 72 [ -d ${TEST_CONF} ] && ./makenemo -n ${TEST_CONF} clean72 #[ -d ${TEST_CONF} ] && ./makenemo -n ${TEST_CONF} clean 73 73 ./makenemo -n ${TEST_CONF} -r ${REFE_CONF} -m $ARCH -j $NPROC #>& /dev/null 74 74 [ ! -e ${TEST_CONF}/BLD/bin/nemo.exe ] && get_out $STATUS $STEP … … 113 113 sleep ${time_increment} 114 114 115 if (( ${time_elapsed} = ${TIME_LIMI} )); then115 if [ ${time_elapsed} -eq ${TIME_LIMI} ]; then 116 116 print_step 'Killing job' 117 117 ${JOB_DELE} ${JOB_ID} &> /dev/null … … 126 126 comments 'E R R O R' 127 127 get_out $STATUS $STEP 128 else 129 STATUS='OK' 128 fi 130 129 131 # Inspect output text files 132 #--------------------------------------------------- 133 print_step 'Test ASCII output files diff' 134 for file in ocean.output solver.stat tracer.stat; do 135 diff $file ${REFE_DIR}/$file 136 [ $? -ne 0 ] && get_out 'FAILED' 'ASCII output file differ' 137 done 130 STATUS='OK' 131 # Inspect output text files 132 #--------------------------------------------------- 133 print_step 'Test ASCII output files diff' 134 for file in ocean.output solver.stat tracer.stat; do 135 diff $file ${REFE_DIR}/$file 136 [ $? -ne 0 ] && get_out 'FAILED' 'ASCII output file diff' 137 done 138 138 139 140 141 142 143 139 # Inspect output NetCDF files 140 #--------------------------------------------------- 141 print_step 'Test last restart NetCDF files diff' 142 diff_restart 143 [ $? -ne 0 ] && get_out 'FAILED' "$CDO diff failed" 144 144 145 146 147 148 145 # Get computation duration 146 #--------------------------------------------------- 147 print_step 'Get real CPU time' 148 get_cpu_time 149 149 150 comments 'W A R N I N G' 151 fi 150 # Get comments (ocean.output & diff arch_env.log) 151 #--------------------------------------------------- 152 comments 'W A R N I N G' 152 153 153 154 # End -
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting_func.sh
r5455 r5459 9 9 last_time_step=$( cat ${TEST_DIR}/time.step | tr -d [:space:] ) 10 10 STEP='nemo.exe crashed at '${last_time_step} && export STEP 11 line=$( grep -m1 "$state" ocean.output | tr -d '\n' )11 line=$( grep -m1 -A5 "$state" ocean.output | tr -d '\n' ) 12 12 else 13 13 STEP='nemo.exe crashed at initialization' && export STEP … … 16 16 fi 17 17 18 if [ $( diff -q env.log ${REFE_DIR}/env.log ) ]; then19 line=$( diff env.log ${REFE_DIR}/env.log | tr -d '\n' )18 if [ $( diff -q arch_env.log ${REFE_DIR}/arch_env.log ) ]; then 19 line=$( diff arch_env.log ${REFE_DIR}/arch_env.log | tr -d '\n' ) 20 20 fi 21 21 … … 81 81 [ -z "${arch_rel}" ] && arch_rel=$( echo $PATH | sed "s#.*$rel/\([^/]*\).*#\1#" ) 82 82 [ $rel == $COMPILER ] && arch_rel=$( $rel --version | grep -m1 -o ' [0-9.]* ' ) 83 echo $rel ${arch_rel} >> env.log83 echo $rel ${arch_rel} >> arch_env.log 84 84 done 85 85 86 sed -n 3p env.log | sed 'i\Compiler' > mesg_05_compiler_${CFG_USER}_${CFG_ARCH}.txt87 sed -n 4p env.log | sed 'i\MPI libs' > mesg_06_mpi_${CFG_USER}_${CFG_ARCH}.txt88 sed -n 5p env.log | sed 'i\NetCDF libs' > mesg_07_netcdf_${CFG_USER}_${CFG_ARCH}.txt86 sed -n 3p arch_env.log | sed 'i\Compiler' > mesg_05_compiler_${CFG_USER}_${CFG_ARCH}.txt 87 sed -n 4p arch_env.log | sed 'i\MPI libs' > mesg_06_mpi_${CFG_USER}_${CFG_ARCH}.txt 88 sed -n 5p arch_env.log | sed 'i\NetCDF libs' > mesg_07_netcdf_${CFG_USER}_${CFG_ARCH}.txt 89 89 } 90 90 … … 107 107 # For time being, just get revision number from XIOS 108 108 if [ $dir == ${DIR_XIOS} ]; then 109 echo 'XIOS '$( svn info $dir | awk '(NR == 5) {print $NF}' ) >> env.log109 echo 'XIOS '$( svn info $dir | awk '(NR == 5) {print $NF}' ) >> arch_env.log 110 110 continue 111 111 fi … … 162 162 touch mesg_08_inputfiles_${CFG_USER}_${CFG_ARCH}.txt mesg_09_realcputime_${CFG_USER}_${CFG_ARCH}.txt \ 163 163 mesg_10_comments_${CFG_USER}_${CFG_ARCH}.txt 164 tar -czf ${REFE_DIR}/trusting_${DATE_STR}_${CFG_USER}_${CFG_ARCH}.tar.gz *164 #tar -czf ${REFE_DIR}/trusting_${DATE_STR}_${CFG_USER}_${CFG_ARCH}.tar.gz * 165 165 fi 166 166
Note: See TracChangeset
for help on using the changeset viewer.