Changeset 5934 for branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/inc
- Timestamp:
- 2015-11-26T21:22:57+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/inc/trusting_func.sh
r5929 r5934 78 78 local soft_rel str 79 79 80 ## Sourcing environment 80 81 if [ -n "${TRUS_ENVI}" ]; then 81 ## Sourcing environment modulefile (.env) only if module function is set82 82 if [[ -e ${TRUS_ENVI}.env && $( declare -F | grep ' module' ) ]]; then 83 ## .env file if module function is available 83 84 . ${TRUS_ENVI}.env 84 85 else 86 ## .path file if existing, if not the given file 85 87 [ -e ${TRUS_ENVI}.path ] && . ${TRUS_ENVI}.path || . ${TRUS_ENVI} 86 88 fi 87 89 fi 88 90 89 ## Problem with `prepend-path` of modulefile that use ':' instead of ' ' as delimiter on LDFLAGS variables91 ## Problem with `prepend-path` of modulefile that use ':' instead of ' ' as delimiter 90 92 [ $TRUS_HPCC == 'X64_ADA' ] && WRAPPER_LDFLAGS='-L/smplocal/pub/IdrMemMPI/1.4/lib -lidrmem '${WRAPPER_LDFLAGS} 91 93 … … 195 197 diff_restart() { 196 198 local base_name comp dif file list_comp list_tmsp nb_dom time_step tmsp 197 local files_list='' dif t=0199 local files_list='' dif_sum=0 198 200 199 201 ## Stop if no benchmark files (ie time.step) … … 204 206 if [ $( find -regex ".*_restart.*[0-9]\.nc" -print -quit ) ]; then 205 207 base_name=$( find -regex ".*_restart.*[0-9]\.nc" \ 206 | sed "s#^\./\(.*\)_[0-9]*_restart.*#\1#" | sort -u )208 | sed "s#^\./\(.*\)_[0-9]*_restart.*#\1#" | sort -u ) 207 209 list_comp=$( find -regex ".*_restart.*[0-9]\.nc" \ 208 | sed "s#^.*\(restart[a-z_]*\)_[0-9].*\.nc#\1#" | sort -u )210 | sed "s#^.*\(restart[a-z_]*\)_[0-9].*\.nc#\1#" | sort -u ) 209 211 list_tmsp=$( find -regex ".*_restart.*[0-9]\.nc" \ 210 | sed "s#^.*\([0-9]\{8\}\)_restart.*#\1#" | sort -u )212 | sed "s#^.*\([0-9]\{8\}\)_restart.*#\1#" | sort -u ) 211 213 212 214 ## Loop on each time step … … 220 222 ${TRUS_NGCM}/TOOLS/REBUILD_NEMO/rebuild_nemo -t ${TRUS_NPRO} $file ${nb_dom} \ 221 223 > /dev/null 224 225 ## Possibility of remaining decomposed restarts (even after rebuild) 226 [ $? -eq 0 ] && rm -f ${file}_[0-9]*.nc \ 227 > /dev/null 228 222 229 elif [ ${nb_dom} -eq 0 ]; then 223 230 TRUS_RSLT='FAILED' && get_out 8 … … 253 260 done 254 261 255 ## List different files for web comment with sum of different parameters262 ## List different files for web comment with sum of different records 256 263 if [ ${dif_sum} -ne 0 ]; then 257 264 echo 'Restarts: '${files_list}${dif_sum}' record(s) differ<br>' \
Note: See TracChangeset
for help on using the changeset viewer.