Changeset 14737
- Timestamp:
- 2021-04-22T12:45:41+02:00 (3 years ago)
- Location:
- branches/UKMO/dev5518_gulf18_changes/NEMOGCM/NEMO/OPA_SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev5518_gulf18_changes/NEMOGCM/NEMO/OPA_SRC/ASM/asminc.F90
r14034 r14737 78 78 LOGICAL, PUBLIC :: ln_trainc = .FALSE. !: No tracer (T and S) assimilation increments 79 79 LOGICAL, PUBLIC :: ln_dyninc = .FALSE. !: No dynamics (u and v) assimilation increments 80 LOGICAL, PUBLIC :: ln_ssh_hs_cons = .FALSE. !: Conserve heat and salt when adding SSH increment 80 81 LOGICAL, PUBLIC :: ln_sshinc = .FALSE. !: No sea surface height assimilation increment 81 82 LOGICAL, PUBLIC :: ln_seaiceinc = .FALSE. !: No sea ice concentration increment … … 179 180 & ln_pno3inc, ln_psi4inc, ln_pdicinc, ln_palkinc, & 180 181 & ln_pphinc, ln_po2inc, ln_ppo4inc, & 181 & ln_asmdin, ln_asmiau, 182 & ln_asmdin, ln_asmiau, ln_ssh_hs_cons, & 182 183 & nitbkg, nitdin, nitiaustr, nitiaufin, niaufn, & 183 184 & ln_salfix, salfixmin, nn_divdmp, nitavgbkg, & … … 201 202 ln_salfix = .FALSE. 202 203 204 ln_ssh_hs_cons = .FALSE. 203 205 ln_seaiceinc = .FALSE. 204 206 ln_sitinc = .FALSE. … … 234 236 WRITE(numout,*) ' Logical switch for applying tracer increments ln_trainc = ', ln_trainc 235 237 WRITE(numout,*) ' Logical switch for applying velocity increments ln_dyninc = ', ln_dyninc 238 WRITE(numout,*) ' Logical switch for conserving heat/salt when applying SSH increments ln_ssh_hs_cons = ', ln_ssh_hs_cons 236 239 WRITE(numout,*) ' Logical switch for applying SSH increments ln_sshinc = ', ln_sshinc 237 240 WRITE(numout,*) ' Logical switch for applying SIC increments ln_seaiceinc = ', ln_seaiceinc -
branches/UKMO/dev5518_gulf18_changes/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r9178 r14737 284 284 285 285 #if defined key_asminc 286 ! WARNING: THIS MAY WELL NOT BE REQUIRED - WE DON'T WANT TO CHANGE T&S BUT THIS MAY COMPENSATE ANOTHER TERM... 287 ! Rate of change in e3t for each level is ssh_iau*e3t_0/ht_0 288 ! Contribution to tsa should be rate of change in level / per m of ocean? (hence the division by fse3t_n) 289 IF( ln_sshinc ) THEN ! input of heat and salt due to assimilation 286 IF( ln_sshinc .and. ln_ssh_hs_cons ) THEN ! conserve heat and salt when assimilating SSH 290 287 DO jj = 2, jpj 291 288 DO ji = fs_2, fs_jpim1 … … 293 290 DO jk = 1, jpkm1 294 291 tsa(ji,jj,jk,jp_tem) = tsa(ji,jj,jk,jp_tem) & 295 & + tsn(ji,jj,jk,jp_tem) * zdep * ( e3t_0(ji,jj,jk) / fse3t_n(ji,jj,jk) ) 292 & + tsn(ji,jj,jk,jp_tem) * zdep * ( e3t_0(ji,jj,jk) / fse3t_n(ji,jj,jk) )* tmask(ji,jj,jk) 296 293 tsa(ji,jj,jk,jp_sal) = tsa(ji,jj,jk,jp_sal) & 297 & + tsn(ji,jj,jk,jp_sal) * zdep * ( e3t_0(ji,jj,jk) / fse3t_n(ji,jj,jk) ) 294 & + tsn(ji,jj,jk,jp_sal) * zdep * ( e3t_0(ji,jj,jk) / fse3t_n(ji,jj,jk) )* tmask(ji,jj,jk) 298 295 END DO 299 296 END DO … … 301 298 ENDIF 302 299 #endif 303 300 304 301 IF( l_trdtra ) THEN ! send trends for further diagnostics 305 302 ztrdt(:,:,:) = tsa(:,:,:,jp_tem) - ztrdt(:,:,:)
Note: See TracChangeset
for help on using the changeset viewer.