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 11949 for NEMO/branches/2019/dev_r11943_MERGE_2019/src/OCE/SBC/sbcrnf.F90 – NEMO

Ignore:
Timestamp:
2019-11-22T15:29:17+01:00 (5 years ago)
Author:
acc
Message:

Merge in changes from 2019/dev_r10721_KERNEL-02_Storkey_Coward_IMMERSE_first_steps. This just creates a fresh copy of this branch to use as the merge base. See ticket #2341

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  
    173173 
    174174 
    175    SUBROUTINE sbc_rnf_div( phdivn ) 
     175   SUBROUTINE sbc_rnf_div( phdivn, Kmm ) 
    176176      !!---------------------------------------------------------------------- 
    177177      !!                  ***  ROUTINE sbc_rnf  *** 
     
    185185      !! ** Action  :   phdivn   decreased by the runoff inflow 
    186186      !!---------------------------------------------------------------------- 
     187      INTEGER                   , INTENT(in   ) ::   Kmm      ! ocean time level index 
    187188      REAL(wp), DIMENSION(:,:,:), INTENT(inout) ::   phdivn   ! horizontal divergence 
    188189      !! 
     
    207208                  h_rnf(ji,jj) = 0._wp 
    208209                  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 box 
     210                     h_rnf(ji,jj) = h_rnf(ji,jj) + e3t(ji,jj,jk,Kmm)   ! to the bottom of the relevant grid box 
    210211                  END DO 
    211212                  !                          ! apply the runoff input flow 
     
    217218         ENDIF 
    218219      ELSE                       !==   runoff put only at the surface   ==! 
    219          h_rnf (:,:)   = e3t_n (:,:,1)        ! update h_rnf to be depth of top box 
    220          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) 
    221222      ENDIF 
    222223      ! 
     
    224225 
    225226 
    226    SUBROUTINE sbc_rnf_init 
     227   SUBROUTINE sbc_rnf_init( Kmm ) 
    227228      !!---------------------------------------------------------------------- 
    228229      !!                  ***  ROUTINE sbc_rnf_init  *** 
     
    234235      !! ** Action  : - read parameters 
    235236      !!---------------------------------------------------------------------- 
     237      INTEGER, INTENT(in) :: Kmm           ! ocean time level index 
    236238      CHARACTER(len=32) ::   rn_dep_file   ! runoff file name 
    237239      INTEGER           ::   ji, jj, jk, jm    ! dummy loop indices 
     
    356358               h_rnf(ji,jj) = 0._wp 
    357359               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) 
    359361               END DO 
    360362            END DO 
     
    411413               h_rnf(ji,jj) = 0._wp 
    412414               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) 
    414416               END DO 
    415417            END DO 
     
    424426      ELSE                                       ! runoffs applied at the surface 
    425427         nk_rnf(:,:) = 1 
    426          h_rnf (:,:) = e3t_n(:,:,1) 
     428         h_rnf (:,:) = e3t(:,:,1,Kmm) 
    427429      ENDIF 
    428430      ! 
Note: See TracChangeset for help on using the changeset viewer.