Changeset 1038 for CONFIG/IPSLCM
- Timestamp:
- 05/25/10 10:42:13 (14 years ago)
- Location:
- CONFIG/IPSLCM/IPSLCM5A
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/IPSLCM/IPSLCM5A/EXP00/COMP/orchidee.driver
r1014 r1038 34 34 typeset SECHIBA_WRITE_STEP 35 35 36 case ${config_SRF_WriteFrequency} in 36 SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 37 case ${SRF_WriteFrequency} in 37 38 *Y|*y) 38 WriteInYears=$( echo ${ 1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}")39 PeriodLengthInYears=$( echo ${ 1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}")39 WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 40 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 40 41 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 41 *M|*m) 42 WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 42 1M) 43 43 case ${config_UserChoices_PeriodLength} in 44 44 *Y|*y) 45 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 45 SECHIBA_WRITE_STEP=-1. 46 ;; 47 *M|*m) 48 SECHIBA_WRITE_STEP=-1. 49 ;; 50 *) 51 (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 52 ;; 53 esac 54 ;; 55 *M|*m) 56 WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 57 case ${config_UserChoices_PeriodLength} in 58 *Y|*y) 59 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 46 60 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 )) 47 61 ;; 48 62 *M|*m) 49 PeriodLengthInMonths=$( echo ${ 1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}")63 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 50 64 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths * 86400 / PeriodLengthInMonths )) 51 65 ;; … … 60 74 (( SECHIBA_WRITE_STEP = 86400 )) ;; 61 75 *s) 62 WriteInSeconds=$( echo ${ 1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}")76 WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 63 77 (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 64 78 *) 65 IGCM_debug_Exit "SRF_Update " ${ config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."79 IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 66 80 IGCM_debug_Verif_Exit ;; 67 81 esac -
CONFIG/IPSLCM/IPSLCM5A/EXP00/COMP/stomate.driver
r793 r1038 25 25 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 26 26 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 27 1M|1m) 28 case ${config_UserChoices_PeriodLength} in 29 *Y|*y) 30 STOMATE_WRITE_STEP=-1. 31 ;; 32 *M|*m) 33 STOMATE_WRITE_STEP=-1. 34 ;; 35 *) 36 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 37 esac 38 ;; 27 39 *M|*m) 28 40 WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) … … 30 42 *Y|*y) 31 43 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 32 (( STOMATE_WRITE_STEP = 30 )) ;; 44 (( STOMATE_WRITE_STEP = 30 )) 45 ;; 33 46 *M|*m) 34 47 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 35 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 48 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 49 ;; 36 50 *) 37 51 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; -
CONFIG/IPSLCM/IPSLCM5A/historical/COMP/orchidee.driver
r1014 r1038 34 34 typeset SECHIBA_WRITE_STEP 35 35 36 case ${config_SRF_WriteFrequency} in 36 SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 37 case ${SRF_WriteFrequency} in 37 38 *Y|*y) 38 WriteInYears=$( echo ${ 1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}")39 PeriodLengthInYears=$( echo ${ 1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}")39 WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 40 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 40 41 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 41 *M|*m) 42 WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 42 1M) 43 43 case ${config_UserChoices_PeriodLength} in 44 44 *Y|*y) 45 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 45 SECHIBA_WRITE_STEP=-1. 46 ;; 47 *M|*m) 48 SECHIBA_WRITE_STEP=-1. 49 ;; 50 *) 51 (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 52 ;; 53 esac 54 ;; 55 *M|*m) 56 WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 57 case ${config_UserChoices_PeriodLength} in 58 *Y|*y) 59 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 46 60 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 )) 47 61 ;; 48 62 *M|*m) 49 PeriodLengthInMonths=$( echo ${ 1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}")63 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 50 64 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths * 86400 / PeriodLengthInMonths )) 51 65 ;; … … 60 74 (( SECHIBA_WRITE_STEP = 86400 )) ;; 61 75 *s) 62 WriteInSeconds=$( echo ${ 1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}")76 WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 63 77 (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 64 78 *) 65 IGCM_debug_Exit "SRF_Update " ${ config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."79 IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 66 80 IGCM_debug_Verif_Exit ;; 67 81 esac -
CONFIG/IPSLCM/IPSLCM5A/historical/COMP/stomate.driver
r793 r1038 25 25 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 26 26 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 27 1M|1m) 28 case ${config_UserChoices_PeriodLength} in 29 *Y|*y) 30 STOMATE_WRITE_STEP=-1. 31 ;; 32 *M|*m) 33 STOMATE_WRITE_STEP=-1. 34 ;; 35 *) 36 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 37 esac 38 ;; 27 39 *M|*m) 28 40 WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) … … 30 42 *Y|*y) 31 43 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 32 (( STOMATE_WRITE_STEP = 30 )) ;; 44 (( STOMATE_WRITE_STEP = 30 )) 45 ;; 33 46 *M|*m) 34 47 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 35 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 48 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 49 ;; 36 50 *) 37 51 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; -
CONFIG/IPSLCM/IPSLCM5A/piControl/COMP/orchidee.driver
r1014 r1038 34 34 typeset SECHIBA_WRITE_STEP 35 35 36 case ${config_SRF_WriteFrequency} in 36 SRF_WriteFrequency=$( echo ${config_SRF_WriteFrequency} | sed -e 's/\([0-9]*[yYmMdDs]\).*/\1/' ) 37 case ${SRF_WriteFrequency} in 37 38 *Y|*y) 38 WriteInYears=$( echo ${ 1} | awk -F '[yY]' "{print ${config_SRF_WriteFrequency}}")39 PeriodLengthInYears=$( echo ${ 1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}")39 WriteInYears=$( echo ${SRF_WriteFrequency} | awk -F '[yY]' '{print $1}' ) 40 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 40 41 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears * 86400 )) ;; 41 *M|*m) 42 WriteInMonths=$( echo ${1} | awk -F '[mM]' "{print ${config_SRF_WriteFrequency}}" ) 42 1M) 43 43 case ${config_UserChoices_PeriodLength} in 44 44 *Y|*y) 45 PeriodLengthInYears=$( echo ${1} | awk -F '[yY]' "{print ${config_UserChoices_PeriodLength}}" ) 45 SECHIBA_WRITE_STEP=-1. 46 ;; 47 *M|*m) 48 SECHIBA_WRITE_STEP=-1. 49 ;; 50 *) 51 (( SECHIBA_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) * 86400 )) 52 ;; 53 esac 54 ;; 55 *M|*m) 56 WriteInMonths=$( echo ${SRF_WriteFrequency} | awk -F '[mM]' '{print $1}' ) 57 case ${config_UserChoices_PeriodLength} in 58 *Y|*y) 59 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 46 60 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * 86400 / PeriodLengthInYears / 12 )) 47 61 ;; 48 62 *M|*m) 49 PeriodLengthInMonths=$( echo ${ 1} | awk -F '[mM]' "{print ${config_UserChoices_PeriodLength}}")63 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 50 64 (( SECHIBA_WRITE_STEP = PeriodLengthInDays * WriteInMonths * 86400 / PeriodLengthInMonths )) 51 65 ;; … … 60 74 (( SECHIBA_WRITE_STEP = 86400 )) ;; 61 75 *s) 62 WriteInSeconds=$( echo ${ 1} | awk -F '[s]' "{print ${config_SRF_WriteFrequency}}")76 WriteInSeconds=$( echo ${SRF_WriteFrequency} | awk -F '[s]' '{print $1}' ) 63 77 (( SECHIBA_WRITE_STEP = WriteInSeconds )) ;; 64 78 *) 65 IGCM_debug_Exit "SRF_Update " ${ config_SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D."79 IGCM_debug_Exit "SRF_Update " ${SRF_WriteFrequency} " invalid WriteFrequency : choose in 1Y, 1M, 5D, 1D." 66 80 IGCM_debug_Verif_Exit ;; 67 81 esac -
CONFIG/IPSLCM/IPSLCM5A/piControl/COMP/stomate.driver
r793 r1038 25 25 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 26 26 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInYears / PeriodLengthInYears )) ;; 27 1M|1m) 28 case ${config_UserChoices_PeriodLength} in 29 *Y|*y) 30 STOMATE_WRITE_STEP=-1. 31 ;; 32 *M|*m) 33 STOMATE_WRITE_STEP=-1. 34 ;; 35 *) 36 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;; 37 esac 38 ;; 27 39 *M|*m) 28 40 WriteInMonths=$( echo ${config_SBG_WriteFrequency} | awk -F '[mM]' '{print $1}' ) … … 30 42 *Y|*y) 31 43 PeriodLengthInYears=$( echo ${config_UserChoices_PeriodLength} | awk -F '[yY]' '{print $1}' ) 32 (( STOMATE_WRITE_STEP = 30 )) ;; 44 (( STOMATE_WRITE_STEP = 30 )) 45 ;; 33 46 *M|*m) 34 47 PeriodLengthInMonths=$( echo ${config_UserChoices_PeriodLength} | awk -F '[mM]' '{print $1}' ) 35 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) ;; 48 (( STOMATE_WRITE_STEP = PeriodLengthInDays * WriteInMonths / PeriodLengthInMonths )) 49 ;; 36 50 *) 37 51 (( STOMATE_WRITE_STEP = $( IGCM_date_DaysInMonth $year $month ) )) ;;
Note: See TracChangeset
for help on using the changeset viewer.