Changeset 155 for CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/opa.driver
- Timestamp:
- 10/01/07 16:03:44 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/opa.driver
r154 r155 64 64 ##--Write Frequency Purpose .... 65 65 frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $1}' ) 66 66 factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 67 67 case ${frequency} in 68 68 1Y|1y) 69 (( ORCA_NWRITE = ORCA_NPDT_JOUR * $( IGCM_date_DaysInYear ${year} ) )) ; 70 PREFIX_OPA=${config_UserChoices_JobName}_1y ;; 69 (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInYear ${year} ) )) ; 70 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}y ; 71 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_Y} ; 72 R_OUT_ICE_NWRITE=${R_OUT_ICE_O_Y} ; 73 WF1=${factor}Y ;; 71 74 1M|1m) 72 (( ORCA_NWRITE = ORCA_NPDT_JOUR * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 73 PREFIX_OPA=${config_UserChoices_JobName}_1m ;; 75 (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 76 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}m ; 77 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_M} ; 78 R_OUT_ICE_NWRITE=${R_OUT_ICE_O_M} ; 79 WF1=${factor}M ;; 74 80 *D|*d) 75 (( ORCA_NWRITE = ORCA_NPDT_JOUR * $( echo ${frequency} | sed -e "s/[dD]//" ) )) ; 76 PREFIX_OPA=${config_UserChoices_JobName}_$( echo ${frequency} | sed -e "s/[dD]//" )d ;; 81 (( ORCA_NWRITE = ORCA_NPDT_JOUR * factor )) ; 82 PREFIX_NWRITE=${config_UserChoices_JobName}_${factor}d ; 83 R_OUT_OCE_NWRITE=${R_OUT_OCE_O_D} ; 84 R_OUT_ICE_NWRITE=${R_OUT_ICE_O_D} ; 85 WF1=${factor}D ;; 77 86 *) 78 87 (( ORCA_NWRITE = 0 )) ;; … … 82 91 if [ ${NbFreq} -eq 2 ] ; then 83 92 frequency=$( echo ${config_OCE_WriteFrequency} | awk "-F " '{print $2}' ) 93 factor=$( echo ${frequency} | sed -e "s/[yYmMdD]//" ) 84 94 case ${frequency} in 85 1Y|1y) 86 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * $( IGCM_date_DaysInYear ${year} ) )) ; 87 PREFIX_HF=${config_UserChoices_JobName}_1y ;; 88 1M|1m) 89 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 90 PREFIX_HF=${config_UserChoices_JobName}_1m ;; 95 *Y|*y) 96 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInYear ${year} ) )) ; 97 PREFIX_NWRIHF=${config_UserChoices_JobName}_${factor}y ; 98 R_OUT_OCE_NWRIHF=${R_OUT_OCE_O_Y} ; 99 WF2=${factor}Y ;; 100 *M|*m) 101 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * factor * $( IGCM_date_DaysInMonth ${year} ${month} ) )) ; 102 PREFIX_NWRIHF=${config_UserChoices_JobName}_${factor}m ; 103 R_OUT_OCE_NWRIHF=${R_OUT_OCE_O_M} ; 104 WF2=${factor}M ;; 91 105 *D|*d) 92 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * $( echo ${frequency} | sed -e "s/[dD]//" ) )) ; 93 PREFIX_HF=${config_UserChoices_JobName}_$( echo ${frequency} | sed -e "s/[dD]//" )d ;; 106 (( ORCA_NWRIHF = ORCA_NPDT_JOUR * factor )) ; 107 PREFIX_NWRIHF=${config_UserChoices_JobName}_${factor}d ; 108 R_OUT_OCE_NWRIHF=${R_OUT_OCE_O_D} ; 109 WF2=${factor}D ;; 94 110 *) 95 111 (( ORCA_NWRIHF = 0 )) ;;
Note: See TracChangeset
for help on using the changeset viewer.