New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 8865 for branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/TRA/tranxt.F90 – NEMO

Ignore:
Timestamp:
2017-12-01T05:41:32+01:00 (6 years ago)
Author:
deazer
Message:

Moving Changes from CS15mini config into NEMO main src
Updating TEST configs to run wit this version of the code
all sette tests pass at this revision other than AGRIF
Includes updates to dynnxt and tranxt required for 3D rives in WAD case to be conservative.

Next commit will update naming conventions and tidy the code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/ROMS_WAD_7832/NEMOGCM/NEMO/OPA_SRC/TRA/tranxt.F90

    r8841 r8865  
    317317                  IF( jk == mikt(ji,jj) ) THEN           ! first level  
    318318                     ze3t_f = ze3t_f - zfact2 * ( (emp_b(ji,jj)    - emp(ji,jj)   )  & 
    319                             &                   - (rnf_b(ji,jj)    - rnf(ji,jj)   )  & 
    320319                            &                   + (fwfisf_b(ji,jj) - fwfisf(ji,jj))  ) 
    321320                     ztc_f  = ztc_f  - zfact1 * ( psbc_tc(ji,jj,jn) - psbc_tc_b(ji,jj,jn) ) 
    322321                  ENDIF 
     322                  ! Rivers can be not just at the surface must go down to nk_rnd(ji,jj) 
     323                  IF( ln_rnf_depth ) THEN 
     324                     IF( mikt(ji,jj) <=jk .and. jk <= nk_rnf(ji,jj)  ) THEN 
     325                      ze3t_f = ze3t_f - zfact2 * ( - (rnf_b(ji,jj)    - rnf(ji,jj)   )  )*(e3t_n(ji,jj,jk)/h_rnf(ji,jj) ) ! as we have sigma can do that here change later 
     326                     ENDIF 
     327                  ELSE 
     328                      IF( jk == mikt(ji,jj) ) THEN           ! first level  
     329                         ze3t_f = ze3t_f - zfact2 * ( - (rnf_b(ji,jj)    - rnf(ji,jj)   ) )  
     330                      ENDIF 
     331                  ENDIF 
     332 
    323333                  ! 
    324334                  ! solar penetration (temperature only) 
Note: See TracChangeset for help on using the changeset viewer.