- Timestamp:
- 2019-11-22T15:29:17+01:00 (5 years ago)
- Location:
- NEMO/branches/2019/dev_r11943_MERGE_2019/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2019/dev_r11943_MERGE_2019/src
- Property svn:mergeinfo deleted
-
NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcrnf.F90
r11536 r11949 173 173 174 174 175 SUBROUTINE sbc_rnf_div( phdivn )175 SUBROUTINE sbc_rnf_div( phdivn, Kmm ) 176 176 !!---------------------------------------------------------------------- 177 177 !! *** ROUTINE sbc_rnf *** … … 185 185 !! ** Action : phdivn decreased by the runoff inflow 186 186 !!---------------------------------------------------------------------- 187 INTEGER , INTENT(in ) :: Kmm ! ocean time level index 187 188 REAL(wp), DIMENSION(:,:,:), INTENT(inout) :: phdivn ! horizontal divergence 188 189 !! … … 207 208 h_rnf(ji,jj) = 0._wp 208 209 DO jk = 1, nk_rnf(ji,jj) ! recalculates h_rnf to be the depth in metres 209 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t _n(ji,jj,jk) ! to the bottom of the relevant grid box210 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t(ji,jj,jk,Kmm) ! to the bottom of the relevant grid box 210 211 END DO 211 212 ! ! apply the runoff input flow … … 217 218 ENDIF 218 219 ELSE !== runoff put only at the surface ==! 219 h_rnf (:,:) = e3t _n (:,:,1) ! update h_rnf to be depth of top box220 phdivn(:,:,1) = phdivn(:,:,1) - ( rnf(:,:) + rnf_b(:,:) ) * zfact * r1_rau0 / e3t _n(:,:,1)220 h_rnf (:,:) = e3t (:,:,1,Kmm) ! update h_rnf to be depth of top box 221 phdivn(:,:,1) = phdivn(:,:,1) - ( rnf(:,:) + rnf_b(:,:) ) * zfact * r1_rau0 / e3t(:,:,1,Kmm) 221 222 ENDIF 222 223 ! … … 224 225 225 226 226 SUBROUTINE sbc_rnf_init 227 SUBROUTINE sbc_rnf_init( Kmm ) 227 228 !!---------------------------------------------------------------------- 228 229 !! *** ROUTINE sbc_rnf_init *** … … 234 235 !! ** Action : - read parameters 235 236 !!---------------------------------------------------------------------- 237 INTEGER, INTENT(in) :: Kmm ! ocean time level index 236 238 CHARACTER(len=32) :: rn_dep_file ! runoff file name 237 239 INTEGER :: ji, jj, jk, jm ! dummy loop indices … … 356 358 h_rnf(ji,jj) = 0._wp 357 359 DO jk = 1, nk_rnf(ji,jj) 358 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t _n(ji,jj,jk)360 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t(ji,jj,jk,Kmm) 359 361 END DO 360 362 END DO … … 411 413 h_rnf(ji,jj) = 0._wp 412 414 DO jk = 1, nk_rnf(ji,jj) 413 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t _n(ji,jj,jk)415 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t(ji,jj,jk,Kmm) 414 416 END DO 415 417 END DO … … 424 426 ELSE ! runoffs applied at the surface 425 427 nk_rnf(:,:) = 1 426 h_rnf (:,:) = e3t _n(:,:,1)428 h_rnf (:,:) = e3t(:,:,1,Kmm) 427 429 ENDIF 428 430 !
Note: See TracChangeset
for help on using the changeset viewer.