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 10251 for branches/UKMO/dev_r5518_AMM15_package/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2018-10-29T15:20:26+01:00 (5 years ago)
Author:
kingr
Message:

Rolled back to r10247 - i.e., undid merge of pkg br and 3.6_stable br

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_AMM15_package/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r10249 r10251  
    3131   USE bdydyn2d        ! bdy_ssh routine 
    3232#if defined key_agrif 
     33   USE agrif_opa_update 
    3334   USE agrif_opa_interp 
    3435#endif 
     
    7475      INTEGER, INTENT(in) ::   kt                      ! time step 
    7576      !  
    76       INTEGER             ::   ji, jj, jk              ! dummy loop indices 
     77      INTEGER             ::   jk                      ! dummy loop indice 
    7778      REAL(wp)            ::   z2dt, z1_rau0           ! local scalars 
    7879      !!---------------------------------------------------------------------- 
     
    9495      z2dt = 2._wp * rdt                              ! set time step size (Euler/Leapfrog) 
    9596      IF( neuler == 0 .AND. kt == nit000 )   z2dt = rdt 
    96  
    97 #if defined key_asminc 
    98       !                                                ! Include the IAU weighted SSH increment 
    99       IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN 
    100          CALL ssh_asm_inc( kt ) 
    101 #if defined key_vvl 
    102 ! Don't directly adjust ssh but change hdivn at all levels instead 
    103 ! In trasbc also add in the heat and salt content associated with these changes at each level   
    104         DO jk = 1, jpkm1                                  
    105                  hdivn(:,:,jk) = hdivn(:,:,jk) - ( ssh_iau(:,:) / ( ht_0(:,:) + 1.0 - ssmask(:,:) ) ) * ( e3t_0(:,:,jk) / fse3t_n(:,:,jk) ) * tmask(:,:,jk)  
    106         END DO 
    107         CALL lbc_lnk( hdivn, 'T', 1. ) ! Not sure that's necessary 
    108       ENDIF 
    109 #endif 
    110 #endif 
    11197 
    11298      !                                           !------------------------------! 
     
    138124#endif 
    139125 
     126#if defined key_asminc 
     127      !                                                ! Include the IAU weighted SSH increment 
     128      IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN 
     129         CALL ssh_asm_inc( kt ) 
     130         ssha(:,:) = ssha(:,:) + z2dt * ssh_iau(:,:) 
     131      ENDIF 
     132#endif 
     133 
    140134      !                                           !------------------------------! 
    141135      !                                           !           outputs            ! 
     
    274268      ELSE                                         !** Leap-Frog time-stepping: Asselin filter + swap 
    275269         sshb(:,:) = sshn(:,:) + atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:) )     ! before <-- now filtered 
    276          IF( lk_vvl ) sshb(:,:) = sshb(:,:) - atfp * rdt / rau0 * ( emp_b(:,:)    - emp(:,:)    & 
    277                                 &                                 - rnf_b(:,:)    + rnf(:,:)    & 
    278                                 &                                 + fwfisf_b(:,:) - fwfisf(:,:) ) * ssmask(:,:) 
     270         IF( lk_vvl ) sshb(:,:) = sshb(:,:) - atfp * rdt / rau0 * ( emp_b(:,:) - emp(:,:) - rnf_b(:,:) + rnf(:,:) ) * ssmask(:,:) 
    279271         sshn(:,:) = ssha(:,:)                           ! now <-- after 
    280272      ENDIF 
     273      ! 
     274      ! Update velocity at AGRIF zoom boundaries 
     275#if defined key_agrif 
     276      IF ( .NOT.Agrif_Root() ) CALL Agrif_Update_Dyn( kt ) 
     277#endif 
    281278      ! 
    282279      IF(ln_ctl)   CALL prt_ctl( tab2d_1=sshb, clinfo1=' sshb  - : ', mask1=tmask, ovlap=1 ) 
Note: See TracChangeset for help on using the changeset viewer.