- Timestamp:
- 2016-06-30T15:45:10+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_25hr_mean_assim_bkg/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90
r6761 r6762 69 69 #endif 70 70 LOGICAL, PUBLIC :: ln_bkgwri = .FALSE. !: No output of the background state fields 71 LOGICAL, PUBLIC :: ln_avgbkg = .FALSE. !: No output of the mean background state fields 71 72 LOGICAL, PUBLIC :: ln_asmiau = .FALSE. !: No applying forcing with an assimilation increment 72 73 LOGICAL, PUBLIC :: ln_asmdin = .FALSE. !: No direct initialization … … 92 93 INTEGER , PUBLIC :: nitiaustr !: Time step of the start of the IAU interval 93 94 INTEGER , PUBLIC :: nitiaufin !: Time step of the end of the IAU interval 95 INTEGER , PUBLIC :: nitavgbkg !: Number of timesteps to average assim bkg [0,nitavgbkg] 94 96 ! 95 97 INTEGER , PUBLIC :: niaufn !: Type of IAU weighing function: = 0 Constant weighting … … 139 141 INTEGER :: iitiaufin_date ! Date YYYYMMDD of IAU interval final time step 140 142 INTEGER :: isurfstat ! Local integer for status of reading surft variable 143 INTEGER :: iitavgbkg_date ! Date YYYYMMDD of end of assim bkg averaging period 141 144 ! 142 145 REAL(wp) :: znorm ! Normalization factor for IAU weights … … 158 161 ! so only apply surft increments. 159 162 !! 160 NAMELIST/nam_asminc/ ln_bkgwri, 163 NAMELIST/nam_asminc/ ln_bkgwri, ln_avgbkg & 161 164 & ln_trainc, ln_dyninc, ln_sshinc, & 162 165 & ln_asmdin, ln_asmiau, & 163 166 & nitbkg, nitdin, nitiaustr, nitiaufin, niaufn, & 164 & ln_salfix, salfixmin, nn_divdmp, mld_choice167 & ln_salfix, salfixmin, nn_divdmp, nitavgbkg, mld_choice 165 168 !!---------------------------------------------------------------------- 166 169 … … 171 174 ! Set default values 172 175 ln_bkgwri = .FALSE. 176 ln_avgbkg = .FALSE. 173 177 ln_trainc = .FALSE. 174 178 ln_dyninc = .FALSE. … … 185 189 nitiaufin = 150 186 190 niaufn = 0 191 nitavgbkg = 1 187 192 188 193 REWIND( numnam_ref ) ! Namelist nam_asminc in reference namelist : Assimilation increment … … 202 207 WRITE(numout,*) ' Namelist namasm : set assimilation increment parameters' 203 208 WRITE(numout,*) ' Logical switch for writing out background state ln_bkgwri = ', ln_bkgwri 209 WRITE(numout,*) ' Logical switch for writing mean background state ln_avgbkg = ', ln_avgbkg 204 210 WRITE(numout,*) ' Logical switch for applying tracer increments ln_trainc = ', ln_trainc 205 211 WRITE(numout,*) ' Logical switch for applying velocity increments ln_dyninc = ', ln_dyninc … … 212 218 WRITE(numout,*) ' Timestep of start of IAU interval in [0,nitend-nit000-1] nitiaustr = ', nitiaustr 213 219 WRITE(numout,*) ' Timestep of end of IAU interval in [0,nitend-nit000-1] nitiaufin = ', nitiaufin 220 WRITE(numout,*) ' Number of timesteps to average assim bkg [0,nitavgbkg] nitavgbkg = ', nitavgbkg 214 221 WRITE(numout,*) ' Type of IAU weighting function niaufn = ', niaufn 215 222 WRITE(numout,*) ' Logical switch for ensuring that the sa > salfixmin ln_salfix = ', ln_salfix … … 222 229 nitiaustr_r = nitiaustr + nit000 - 1 ! Start of IAU interval referenced to nit000 223 230 nitiaufin_r = nitiaufin + nit000 - 1 ! End of IAU interval referenced to nit000 231 nitavgbkg_r = nitavgbkg + nit000 - 1 ! Averaging period referenced to nit000 224 232 225 233 iiauper = nitiaufin_r - nitiaustr_r + 1 ! IAU interval length … … 231 239 CALL calc_date( nit000, nitiaustr_r, ndate0, iitiaustr_date ) ! IAU start time referenced to ndate0 232 240 CALL calc_date( nit000, nitiaufin_r, ndate0, iitiaufin_date ) ! IAU end time referenced to ndate0 241 CALL calc_date( nit000, nitavgbkg_r, ndate0, iitavgbkg_date ) ! End of assim bkg averaging period referenced to ndate0 233 242 ! 234 243 IF(lwp) THEN … … 242 251 WRITE(numout,*) ' nitiaustr_r = ', nitiaustr_r 243 252 WRITE(numout,*) ' nitiaufin_r = ', nitiaufin_r 253 WRITE(numout,*) ' nitavgbkg_r = ', nitavgbkg_r 244 254 WRITE(numout,*) 245 255 WRITE(numout,*) ' Dates referenced to current cycle:' … … 251 261 WRITE(numout,*) ' iitiaustr_date = ', iitiaustr_date 252 262 WRITE(numout,*) ' iitiaufin_date = ', iitiaufin_date 263 WRITE(numout,*) ' iitavgbkg_date = ', iitavgbkg_date 253 264 ENDIF 254 265 … … 293 304 & CALL ctl_stop( ' nitdin :', & 294 305 & ' Background time step for Direct Initialization is outside', & 306 & ' the cycle interval') 307 308 IF ( nitavgbkg_r > nitend ) & 309 & CALL ctl_stop( ' nitavgbkg_r :', & 310 & ' Assim bkg averaging period is outside', & 295 311 & ' the cycle interval') 296 312
Note: See TracChangeset
for help on using the changeset viewer.