- Timestamp:
- 2015-10-31T08:40:45+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/SBC/sbcrnf.F90
r5836 r5845 68 68 TYPE(FLD), ALLOCATABLE, DIMENSION(:) :: sf_t_rnf ! structure: river runoff temperature (file information, fields read) 69 69 70 !! * Substitutions71 # include "domzgr_substitute.h90"72 70 !!---------------------------------------------------------------------- 73 71 !! NEMO/OPA 3.3 , NEMO Consortium (2010) … … 216 214 h_rnf(ji,jj) = 0._wp 217 215 DO jk = 1, nk_rnf(ji,jj) ! recalculates h_rnf to be the depth in metres 218 h_rnf(ji,jj) = h_rnf(ji,jj) + fse3t(ji,jj,jk) ! to the bottom of the relevant grid box216 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t_n(ji,jj,jk) ! to the bottom of the relevant grid box 219 217 END DO 220 218 ! ! apply the runoff input flow … … 235 233 ELSE !== runoff put only at the surface ==! 236 234 IF( lk_vvl ) THEN ! variable volume case 237 h_rnf(:,:) = fse3t(:,:,1) ! recalculate h_rnf to be depth of top box238 ENDIF 239 phdivn(:,:,1) = phdivn(:,:,1) - ( rnf(:,:) + rnf_b(:,:) ) * zfact * r1_rau0 / fse3t(:,:,1)235 h_rnf(:,:) = e3t_n(:,:,1) ! recalculate h_rnf to be depth of top box 236 ENDIF 237 phdivn(:,:,1) = phdivn(:,:,1) - ( rnf(:,:) + rnf_b(:,:) ) * zfact * r1_rau0 / e3t_n(:,:,1) 240 238 ENDIF 241 239 ! … … 377 375 h_rnf(ji,jj) = 0._wp 378 376 DO jk = 1, nk_rnf(ji,jj) 379 h_rnf(ji,jj) = h_rnf(ji,jj) + fse3t(ji,jj,jk)377 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t_n(ji,jj,jk) 380 378 END DO 381 379 END DO … … 435 433 h_rnf(ji,jj) = 0._wp 436 434 DO jk = 1, nk_rnf(ji,jj) 437 h_rnf(ji,jj) = h_rnf(ji,jj) + fse3t(ji,jj,jk)435 h_rnf(ji,jj) = h_rnf(ji,jj) + e3t_n(ji,jj,jk) 438 436 END DO 439 437 END DO … … 448 446 ELSE ! runoffs applied at the surface 449 447 nk_rnf(:,:) = 1 450 h_rnf (:,:) = fse3t(:,:,1)448 h_rnf (:,:) = e3t_n(:,:,1) 451 449 ENDIF 452 450 !
Note: See TracChangeset
for help on using the changeset viewer.