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 7167 for branches/UKMO/r5936_INGV1_WAVE-coupling/NEMOGCM/NEMO/OPA_SRC/TRA/traadv.F90 – NEMO

Ignore:
Timestamp:
2016-11-02T15:06:08+01:00 (7 years ago)
Author:
jcastill
Message:

Changes as in branch 2015/dev_r5936_INGV1_WAVE at r7078

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/r5936_INGV1_WAVE-coupling/NEMOGCM/NEMO/OPA_SRC/TRA/traadv.F90

    r7166 r7167  
    99   !!            3.7  !  2014-05  (G. Madec)  Add 2nd/4th order cases for CEN and FCT schemes  
    1010   !!             -   !  2014-12  (G. Madec) suppression of cross land advection option 
     11   !!            3.6  !  2015-06  (E. Clementi) Addition of Stokes drift in case of wave coupling 
    1112   !!---------------------------------------------------------------------- 
    1213 
     
    3435   USE wrk_nemo       ! Memory Allocation 
    3536   USE timing         ! Timing 
    36  
    37    USE diaptr          ! Poleward heat transport  
     37   USE sbcwave        ! wave module 
     38   USE sbc_oce        ! surface boundary condition: ocean 
     39 
     40   USE diaptr         ! Poleward heat transport  
     41   USE sbcwave        ! wave module 
     42   USE sbc_oce        ! surface boundary condition: ocean 
    3843 
    3944   IMPLICIT NONE 
     
    95100      ! 
    96101      !                                          ! set time step 
     102      zun(:,:,:) = 0.0 
     103      zvn(:,:,:) = 0.0 
     104      zwn(:,:,:) = 0.0 
     105      !     
    97106      IF( neuler == 0 .AND. kt == nit000 ) THEN     ! at nit000 
    98107         r2dtra(:) =  rdttra(:)                          ! = rdtra (restarting with Euler time stepping) 
     
    102111      ! 
    103112      !                                         !==  effective transport  ==! 
     113      IF (ln_wave .AND. ln_sdw) THEN 
     114         DO jk = 1, jpkm1 
     115            zun(:,:,jk) = e2u(:,:) * fse3u(:,:,jk) *      & 
     116                        &  ( un(:,:,jk) + usd3d(:,:,jk) )                     !eulerian transport + Stokes Drift 
     117            zvn(:,:,jk) = e1v(:,:) * fse3v(:,:,jk) *      & 
     118                        &  ( vn(:,:,jk) + vsd3d(:,:,jk) ) 
     119            zwn(:,:,jk) = e1e2t(:,:) *                    & 
     120                        &  ( wn(:,:,jk) + wsd3d(:,:,jk) ) 
     121         END DO 
     122      ELSE 
    104123      DO jk = 1, jpkm1 
    105124         zun(:,:,jk) = e2u  (:,:) * fse3u(:,:,jk) * un(:,:,jk)                  ! eulerian transport only 
     
    107126         zwn(:,:,jk) = e1e2t(:,:)                 * wn(:,:,jk) 
    108127      END DO 
     128      ENDIF 
    109129      ! 
    110130      IF( ln_vvl_ztilde .OR. ln_vvl_layer ) THEN                                ! add z-tilde and/or vvl corrections 
Note: See TracChangeset for help on using the changeset viewer.