Changeset 3408 for CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/pisces.driver
- Timestamp:
- 10/09/17 11:57:12 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v6/NEMO_v6/GENERAL/DRIVER/pisces.driver
r3210 r3408 43 43 IGCM_debug_PushStack "MBG_Update" 44 44 45 V1D_ENABLE=".FALSE." 46 V5D_ENABLE=".FALSE." 47 V1M_ENABLE=".FALSE." 48 V1Y_ENABLE=".FALSE." 45 49 46 ##--Write Frequency Purpose 47 Nbfreq=$( echo ${config_MBG_WriteFrequency} | wc -w ) 48 typeset -Z1 i=1 49 while [ $i -le ${Nbfreq} ]; do 50 topfrequency=$( echo ${config_MBG_WriteFrequency} | awk -v var="$i" "-F " '{print $var}' ) 51 topfactor=$( echo ${topfrequency} | sed -e "s/[yYmMdD]//" ) 52 case ${topfrequency} in 53 *Y|*y) 54 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}y_${DatesPeriod} ; 55 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_Y} ; 56 eval WFT${i}=${topfactor}Y ;; 57 *M|*m) 58 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}m_${DatesPeriod} ; 59 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_M} ; 60 eval WFT${i}=${topfactor}M ;; 61 *D|*d) 62 eval PREFIX_WFT${i}=${config_UserChoices_JobName}_${topfactor}d_${DatesPeriod} ; 63 eval R_OUT_MBG_WFT${i}=${R_OUT_MBG_O_D} ; 64 eval WFT${i}=${topfactor}D ;; 65 *) 66 esac 67 let i=$i+1 50 for frequency in ${config_OCE_WriteFrequency} ; do 51 case ${frequency} in 52 ( 1D|1d ) V1D_ENABLE=".TRUE." ;; 53 ( 5D|5d ) V5D_ENABLE=".TRUE." ;; 54 ( 1M|1m ) V1M_ENABLE=".TRUE." ;; 55 ( *[yY] ) V1Y_ENABLE=".TRUE." ;; 56 esac 68 57 done 69 58 59 70 60 if [ X"${pisces_UserChoices_Offline_Mode}" = X"y" ] ; then 71 72 61 73 62 # Period Length In Days between DateBegin and first day of calendar 0001 01 01 … … 95 84 typeset -r PRECIS=8 96 85 NEMO_END=$( echo $( awk "BEGIN { printf \"%0${PRECIS}d\",${OPA_NITEND} }" ) ) 86 87 88 DYN_SSH_INI=.TRUE. 89 if [ "${EXPTYPE}" = "ia" ] ; then 90 NbDynFile=${#pisces_UserChoices_DynFiles[*]} 91 (( LengthForcing=${pisces_UserChoices_DynYearEnd} - ${pisces_UserChoices_DynYearStart} + 1 )) 92 (( DiffForcing=abs( ${pisces_UserChoices_DynYearEnd} - ${year} ) )) 93 (( ModuloForcing=${DiffForcing} % ${LengthForcing} )) 94 if [ ${ModuloForcing} -eq 0 ] ; then 95 (( year_forcing=${pisces_UserChoices_DynYearEnd} )) 96 else 97 if [ ${year} -ge ${pisces_UserChoices_DynYearStart} ] && [ ${year} -le ${pisces_UserChoices_DynYearEnd} ] ; then 98 year_forcing=${year} 99 elif [ ${year} -lt ${pisces_UserChoices_DynYearStart} ] ; then 100 (( year_forcing=${pisces_UserChoices_DynYearEnd} - ${ModuloForcing} )) 101 else 102 (( year_forcing=${pisces_UserChoices_DynYearStart} + ${ModuloForcing} - 1 )) 103 fi 104 fi 105 (( year_forcing_m1 = ${year_forcing} - 1)) 106 (( year_forcing_p1 = ${year_forcing} + 1)) 107 eval CurrDateFor=${year_forcing}0101_${year_forcing}1231 108 eval PrevDateFor=${year_forcing_m1}0101_${year_forcing_m1}1231 109 eval NextDateFor=${year_forcing_p1}0101_${year_forcing_p1}1231 110 (( i = 0 )) 111 while [ $i -lt ${NbDynFile} ] ; do 112 eval Suffix=${pisces_UserChoices_DynFiles[$i]} 113 eval RunFileName=${pisces_UserChoices_DynRunName}_${Suffix} 114 eval PrevDynFileName=${pisces_UserChoices_DynName}_${PrevDateFor}_${pisces_UserChoices_DynFreq}_${Suffix} 115 eval CurrDynFileName=${pisces_UserChoices_DynName}_${CurrDateFor}_${pisces_UserChoices_DynFreq}_${Suffix} 116 eval NextDynFileName=${pisces_UserChoices_DynName}_${NextDateFor}_${pisces_UserChoices_DynFreq}_${Suffix} 117 ## IGCM_sys_Get ${pisces_UserChoices_R_DYN}/${PrevDynFileName}.nc ${RunFileName}_y${year_m1}.nc 118 IGCM_sys_Get ${pisces_UserChoices_R_DYN}/${CurrDynFileName}.nc ${RunFileName}_y${year}.nc 119 ## IGCM_sys_Get ${pisces_UserChoices_R_DYN}/${NextDynFileName}.nc ${RunFileName}_y${year_p1}.nc 120 (( i = i + 1 )) 121 done 122 if [ ${year_forcing} = ${pisces_UserChoices_DynYearStart} ] ; then 123 DYN_SSH_INI=.TRUE. 124 else 125 DYN_SSH_INI=.FALSE 126 fi 127 fi 97 128 fi 98 129 … … 137 168 IGCM_comp_modifyNamelist blocker namelist_top_cfg ln_rsttr ${TOP_LRSTTR} 138 169 IGCM_comp_modifyNamelist blocker namelist_top_cfg nn_rsttr ${TOP_NRSTTR} 170 IGCM_comp_modifyNamelist blocker namelist_pisces_cfg atcco2 ${pisces_UserChoices_AtmCo2} 139 171 IGCM_comp_modifyNamelist blocker namelist_pisces_cfg nn_pisdmp ${OPA_NPDT_YEAR} 140 172 IGCM_comp_modifyNamelist blocker namelist_pisces_cfg nrdttrc ${pisces_UserChoices_PisFreq} 173 174 175 IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1d enabled ${V1D_ENABLE} 176 IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1m enabled ${V1M_ENABLE} 177 IGCM_comp_modifyXmlFile nonblocker file_def_nemo-pisces.xml 1y enabled ${V1Y_ENABLE} 178 141 179 142 180 IGCM_debug_PopStack "MBG_Update"
Note: See TracChangeset
for help on using the changeset viewer.