- Timestamp:
- 2015-06-19T18:39:39+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting_func.sh
r5444 r5452 3 3 4 4 comments() { 5 echo 'Comments' | tee mesg_10_comments_${CFG_USER}_${CFG_ARCH}.txt6 grep $1 ocean.output | tee -amesg_10_comments_${CFG_USER}_${CFG_ARCH}.txt5 [ -e ocean.output ] && grep $1 ocean.output 6 printf "Comments\n$line\n" | tee mesg_10_comments_${CFG_USER}_${CFG_ARCH}.txt 7 7 } 8 8 9 9 get_cpu_time() { 10 10 # Portability ! 11 real_cpu_time=$( ${JOB_VIEW} ${job_num} | awk 'END{print $9}' ) 12 printf "Real CPU time\n%s\n" ${real_cpu_time} | tee mesg_09_realcputime_${CFG_USER}_${CFG_ARCH}.txt 11 real_cpu_time=$( ${JOB_VIEW} ${JOB_ID} | awk 'END{print $9}' ) 12 printf "Real CPU time\n${real_cpu_time}\n" | tee mesg_09_realcputime_${CFG_USER}_${CFG_ARCH}.txt 13 } 14 15 diff_arch() { 16 diff env.log ${REFE_DIR}/env.log 13 17 } 14 18 … … 21 25 done 22 26 23 printf "Input files\n$mesg " | tee mesg_08_inputfiles_${CFG_USER}_${CFG_ARCH}.txt27 printf "Input files\n$mesg\n" | tee mesg_08_inputfiles_${CFG_USER}_${CFG_ARCH}.txt 24 28 } 25 29 … … 62 66 [ -z "${arch_rel}" ] && arch_rel=$( echo $PATH | sed "s#.*$rel/\([^/]*\).*#\1#" ) 63 67 [ $rel == $COMPILER ] && arch_rel=$( $rel --version | grep -m1 -o ' [0-9.]* ' ) 64 echo $rel ${arch_rel} >> model.log68 echo $rel ${arch_rel} >> env.log 65 69 done 66 70 67 sed -n 4p model.log | sed 'i\Compiler' > mesg_05_compiler_${CFG_USER}_${CFG_ARCH}.txt68 sed -n 5p model.log | sed 'i\MPI libs' > mesg_06_mpi_${CFG_USER}_${CFG_ARCH}.txt69 sed -n 6p model.log | sed 'i\NetCDF libs' > mesg_07_netcdf_${CFG_USER}_${CFG_ARCH}.txt71 sed -n 4p env.log | sed 'i\Compiler' > mesg_05_compiler_${CFG_USER}_${CFG_ARCH}.txt 72 sed -n 5p env.log | sed 'i\MPI libs' > mesg_06_mpi_${CFG_USER}_${CFG_ARCH}.txt 73 sed -n 6p env.log | sed 'i\NetCDF libs' > mesg_07_netcdf_${CFG_USER}_${CFG_ARCH}.txt 70 74 } 71 75 … … 88 92 # For time being, just get revision number from XIOS 89 93 if [ $dir == ${DIR_XIOS} ]; then 90 echo 'XIOS '$( svn info $dir | awk '(NR == 9) {print $NF}' ) >> model.log94 echo 'XIOS '$( svn info $dir | awk '(NR == 9) {print $NF}' ) >> env.log 91 95 continue 92 96 fi … … 97 101 done 98 102 99 echo 'NEMOGCM '$rev >> model.log 100 sed -n 2p model.log | sed 'i\NEMO rev.' > mesg_02_nemogcm_${CFG_USER}_${CFG_ARCH}.txt 103 printf "NEMOGCM rev.\n$rev\n" > mesg_02_nemogcm_${CFG_USER}_${CFG_ARCH}.txt 101 104 } 102 105 … … 134 137 } 135 138 136 p step() {139 print_step() { 137 140 STEP=$1 138 141 export STEP
Note: See TracChangeset
for help on using the changeset viewer.