Changeset 5638 for branches/2015
- Timestamp:
- 2015-07-27T21:39:48+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS_SETTE/NEMOGCM/TRUST/trusting_func.sh
r5637 r5638 10 10 [ -e ocean.output ] && line=$( grep -m1 -A4 "$state" ocean.output | tr -d '\n' ) 11 11 else 12 [ -e ocean.output ] && line=$( grep -m1 -A 3"^ $state" ocean.output | tr -d '\n' )12 [ -e ocean.output ] && line=$( grep -m1 -A2 "^ $state" ocean.output | tr -d '\n' ) 13 13 fi 14 14 … … 101 101 get_soft_rel() { 102 102 for soft in $CDO $COMPILER $MPI $NETCDF; do 103 soft_rel='' 103 104 (( ${I_MODULE} == 1 )) && soft_rel=$( echo $LOADEDMODULES | sed "s/.*$soft\([0-9.a-z_]*\).*/\1/i" ) 104 105 [ -z "${soft_rel}" ] && soft_rel=$( echo $PATH | sed "s/.*$soft\([0-9.a-z_]*\).*/\1/i" ) 105 106 [ "$soft" == "$COMPILER" ] && soft_rel=$( $soft --version | grep -m1 -oe '\<[0-9. ]*\>' ) 106 ## Not working inside CURIE cron (cdo embedded in netcdf-*) 107 # [[ "$soft" == "$CDO" && -z "${soft_rel}" ]] && soft_rel=$( echo $PATH | grep -o "netcdf-utils[^/]*" ) 108 # [[ "$soft" == "$NETCDF" && -z "${soft_rel}" ]] && soft_rel=$( echo $PATH | grep -o "netcdf[^/]*" | sort -u | head -1 ) 109 echo $( echo $soft | tr -d '\\' ) ${soft_rel} >> model.log 107 # Cleaning characters string to display proper soft name 108 soft=$( echo $soft | sed 's#\\##; s#[/-]$##' ) 109 echo $soft ${soft_rel} >> model.log 110 110 done 111 111
Note: See TracChangeset
for help on using the changeset viewer.