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 12068 for NEMO/branches/2019/UKMO_MERGE_2019/src/OCE/ISF/isftbl.F90 – NEMO

Ignore:
Timestamp:
2019-12-05T13:18:21+01:00 (5 years ago)
Author:
davestorkey
Message:

2019/UKMO_MERGE_2019 : Merging in changes from ENHANCE-02_ISF_nemo.

Location:
NEMO/branches/2019/UKMO_MERGE_2019/src/OCE/ISF
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/UKMO_MERGE_2019/src/OCE/ISF/isftbl.F90

    r11931 r12068  
    2626CONTAINS 
    2727 
    28    SUBROUTINE isf_tbl( pvarin, pvarout, cd_ptin, ktop, phtbl, kbot, pfrac ) 
     28   SUBROUTINE isf_tbl( Kmm, pvarin, pvarout, cd_ptin, ktop, phtbl, kbot, pfrac ) 
    2929      !!-------------------------------------------------------------------- 
    3030      !!                  ***  SUBROUTINE isf_tbl  *** 
     
    4040      REAL(wp), DIMENSION(jpi,jpj)          , INTENT(  out) :: pvarout ! 2d average of pvarin 
    4141      !!-------------------------- IN  ------------------------------------- 
     42      INTEGER                               , INTENT(in   ) :: Kmm           ! ocean time level index 
    4243      CHARACTER(len=1)                      , INTENT(in   ) :: cd_ptin       ! point of variable in/out 
    4344      REAL(wp), DIMENSION(jpi,jpj,jpk)      , INTENT(in   ) :: pvarin        ! 3d variable to average over the tbl 
     
    6263         ! 
    6364         ! compute tbl lvl and thickness 
    64          CALL isf_tbl_lvl( hu_n, e3u_n, ktop, ikbot, zhtbl, zfrac ) 
     65         CALL isf_tbl_lvl( hu(:,:,Kmm), e3u(:,:,:,Kmm), ktop, ikbot, zhtbl, zfrac ) 
    6566         ! 
    6667         ! compute tbl property at U point 
    67          CALL isf_tbl_avg( miku, ikbot, zhtbl, zfrac, e3u_n, pvarin, zvarout ) 
     68         CALL isf_tbl_avg( miku, ikbot, zhtbl, zfrac, e3u(:,:,:,Kmm), pvarin, zvarout ) 
    6869         ! 
    6970         ! compute tbl property at T point 
     
    8283         ! 
    8384         ! compute tbl lvl and thickness 
    84          CALL isf_tbl_lvl( hv_n, e3v_n, ktop, ikbot, zhtbl, zfrac ) 
     85         CALL isf_tbl_lvl( hv(:,:,Kmm), e3v(:,:,:,Kmm), ktop, ikbot, zhtbl, zfrac ) 
    8586         ! 
    8687         ! compute tbl property at V point 
    87          CALL isf_tbl_avg( mikv, ikbot, zhtbl, zfrac, e3v_n, pvarin, zvarout ) 
     88         CALL isf_tbl_avg( mikv, ikbot, zhtbl, zfrac, e3v(:,:,:,Kmm), pvarin, zvarout ) 
    8889         ! 
    8990         ! pvarout is an averaging of wet point 
     
    99100         ! 
    100101         ! compute tbl property at T point 
    101          CALL isf_tbl_avg( ktop, kbot, phtbl, pfrac, e3t_n, pvarin, pvarout ) 
     102         CALL isf_tbl_avg( ktop, kbot, phtbl, pfrac, e3t(:,:,:,Kmm), pvarin, pvarout ) 
    102103         ! 
    103104      END SELECT 
     
    252253      ! 
    253254      ! if we need to recompute the top level at every time stepcompute top level (z*, z~)  
    254       ! in case of weak ht_n variation we can assume the top level of htbl to be constant 
     255      ! in case of weak ht variation we can assume the top level of htbl to be constant 
    255256      ! => only done using gdepw_0 
    256257      ! be sure pdep is already correctly bounded 
Note: See TracChangeset for help on using the changeset viewer.