- Timestamp:
- 2012-02-23T12:21:08+01:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2012/dev_r3309_LOCEAN12_Ediag/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90
r3294 r3317 104 104 !! ** Action : - Update the 1st level of (ta,sa) with the trend associated 105 105 !! with the tracer surface boundary condition 106 !! - s ave the trend it in ttrd ('key_trdtra')106 !! - send trends to trdtra module (l_trdtra=T) 107 107 !!---------------------------------------------------------------------- 108 108 INTEGER, INTENT(in) :: kt ! ocean time-step index … … 123 123 zsrau = 1. / rau0 ! initialization 124 124 125 IF( l_trdtra ) 125 IF( l_trdtra ) THEN !* Save ta and sa trends 126 126 CALL wrk_alloc( jpi, jpj, jpk, ztrdt, ztrds ) 127 127 ztrdt(:,:,:) = tsa(:,:,:,jp_tem) … … 145 145 & iom_varid( numror, 'sbc_hc_b', ldstop = .FALSE. ) > 0 ) THEN 146 146 IF(lwp) WRITE(numout,*) ' nit000-1 surface tracer content forcing fields red in the restart file' 147 zfact = 0.5 e0147 zfact = 0.5_wp 148 148 CALL iom_get( numror, jpdom_autoglo, 'sbc_hc_b', sbc_tsc_b(:,:,jp_tem) ) ! before heat content sbc trend 149 149 CALL iom_get( numror, jpdom_autoglo, 'sbc_sc_b', sbc_tsc_b(:,:,jp_sal) ) ! before salt content sbc trend 150 150 ELSE ! No restart or restart not found: Euler forward time stepping 151 zfact = 1. e0151 zfact = 1._wp 152 152 sbc_tsc_b(:,:,:) = 0.e0 153 153 ENDIF 154 154 ELSE ! Swap of forcing fields 155 155 ! ! ---------------------- 156 zfact = 0.5 e0156 zfact = 0.5_wp 157 157 sbc_tsc_b(:,:,:) = sbc_tsc(:,:,:) 158 158 ENDIF … … 206 206 !---------------------------------------- 207 207 ! 208 zfact = 0.5e0209 208 210 209 ! Effect on (t,s) due to river runoff (dilution effect automatically applied via vertical tracer advection) 211 210 IF( ln_rnf ) THEN 211 zfact = 0.5_wp 212 212 DO jj = 2, jpj 213 213 DO ji = fs_2, fs_jpim1 214 zdep = 1. / h_rnf(ji,jj) 215 zdep = zfact * zdep 214 zdep = zfact / h_rnf(ji,jj) 216 215 IF ( rnf(ji,jj) /= 0._wp ) THEN 217 216 DO jk = 1, nk_rnf(ji,jj) … … 225 224 END DO 226 225 ENDIF 227 !!gm It should be useless 226 !!gm It should be useless ==>> to be suppressed ! 228 227 CALL lbc_lnk( tsa(:,:,:,jp_tem), 'T', 1. ) ; CALL lbc_lnk( tsa(:,:,:,jp_sal), 'T', 1. ) 228 !!gm : end of useless 229 229 230 230 IF( l_trdtra ) THEN ! save the horizontal diffusive trends for further diagnostics
Note: See TracChangeset
for help on using the changeset viewer.