Changeset 109 for trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
- Timestamp:
- 04/17/09 15:37:12 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/libIGCM_config/libIGCM_config.ksh
r108 r109 221 221 case ${config_UserChoices_PeriodLength} in 222 222 *Y|*y) 223 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )223 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[yY]' '{print $1}' ) 224 224 IGCM_debug_Print 1 "Number of years for PeriodLength : ${PeriodLengthInYears}" 225 225 PeriodLengthInDays=0 … … 231 231 ;; 232 232 *M|*m) 233 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )233 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[mM]' '{print $1}' ) 234 234 IGCM_debug_Print 1 "Number of months for PeriodLength : ${PeriodLengthInMonths}" 235 235 typeset year1 … … 247 247 ;; 248 248 *D|*d) 249 PeriodLengthInDays=$( echo ${config_UserChoices_PeriodLength} | awk -F '[dD]' '{print $1}' ) ;;249 PeriodLengthInDays=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[dD]' '{print $1}' ) ;; 250 250 *) 251 251 IGCM_debug_Exit "IGCM_config_PeriodStart " ${config_UserChoices_PeriodLength} " invalid period length : choose in *Y, *M, *D." … … 317 317 case ${config_UserChoices_PeriodLength} in 318 318 *Y|*y) 319 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )319 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[yY]' '{print $1}' ) 320 320 IGCM_debug_Print 1 "Number of years for PeriodLength : ${PeriodLengthInYears}" 321 321 PeriodLengthInDays=0 … … 327 327 ;; 328 328 *M|*m) 329 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )329 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[mM]' '{print $1}' ) 330 330 IGCM_debug_Print 1 "Number of months for PeriodLength : ${PeriodLengthInMonths}" 331 331 typeset year1 … … 343 343 ;; 344 344 *D|*d) 345 PeriodLengthInDays=$( echo ${config_UserChoices_PeriodLength} | awk -F '[dD]' '{print $1}' ) ;;345 PeriodLengthInDays=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[dD]' '{print $1}' ) ;; 346 346 *) 347 347 IGCM_debug_Exit "IGCM_config_PeriodStart " ${config_UserChoices_PeriodLength} " invalid period length : choose in *Y, *M, *D." … … 495 495 # ExeCpuLog variable contents 5 fields 496 496 echo "${CumulPeriod} ${PeriodDateBegin} ${PeriodDateEnd} ${ExeCpuLog} ${ExeDate}" | \ 497 awk '{printf("# %11d | %15s | %15s | %19s | %19s | %15.5f | %15.5f | %15.5f | %s\n", \497 gawk '{printf("# %11d | %15s | %15s | %19s | %19s | %15.5f | %15.5f | %15.5f | %s\n", \ 498 498 $1,$2,$3,$4,$5,$6,$7,$8,$9)}' >> ${SUBMIT_DIR}/run.card 499 499 fi … … 526 526 case ${config_UserChoices_PeriodLength} in 527 527 *Y|*y) 528 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' )528 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[yY]' '{print $1}' ) 529 529 IGCM_debug_Print 1 "Number of years for PeriodLength : ${PeriodLengthInYears}" 530 530 PeriodLengthInDays=0 … … 536 536 ;; 537 537 *M|*m) 538 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' )538 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[mM]' '{print $1}' ) 539 539 IGCM_debug_Print 1 "Number of months for PeriodLength : ${PeriodLengthInMonths}" 540 540 typeset year1 … … 552 552 ;; 553 553 *D|*d) 554 PeriodLengthInDays=$( echo ${config_UserChoices_PeriodLength} | awk -F '[dD]' '{print $1}' ) ;;554 PeriodLengthInDays=$( echo ${config_UserChoices_PeriodLength} | gawk -F '[dD]' '{print $1}' ) ;; 555 555 esac 556 556 PeriodDateEnd=$( IGCM_date_AddDaysToGregorianDate ${PeriodDateBegin} $( expr ${PeriodLengthInDays} - 1 ) )
Note: See TracChangeset
for help on using the changeset viewer.