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 9023 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2017-12-13T18:08:50+01:00 (6 years ago)
Author:
timgraham
Message:

Merged METO_MERCATOR branch and resolved all conflicts in OPA_SRC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r9019 r9023  
    2727   USE agrif_opa_interp 
    2828#endif 
    29 #if defined key_asminc    
    30    USE   asminc       ! Assimilation increment 
    31 #endif 
    3229   ! 
    3330   USE in_out_manager ! I/O manager 
     
    3734   USE lib_mpp        ! MPP library 
    3835   USE timing         ! Timing 
    39    USE wet_dry        ! Wetting/Drying flux limting 
     36   USE wet_dry        ! Wetting/Drying flux limiting 
    4037 
    4138   IMPLICIT NONE 
     
    9188      !                                           !   After Sea Surface Height   ! 
    9289      !                                           !------------------------------! 
    93       IF(ln_wd) THEN 
     90      IF(ln_wd_il) THEN 
    9491         CALL wad_lmt(sshb, zcoef * (emp_b(:,:) + emp(:,:)), z2dt) 
    9592      ENDIF 
     
    106103      !  
    107104      ssha(:,:) = (  sshb(:,:) - z2dt * ( zcoef * ( emp_b(:,:) + emp(:,:) ) + zhdiv(:,:) )  ) * ssmask(:,:) 
    108  
     105      ! 
     106#if defined key_agrif 
     107      CALL agrif_ssh( kt ) 
     108#endif 
     109      ! 
    109110      IF ( .NOT.ln_dynspg_ts ) THEN 
    110          ! These lines are not necessary with time splitting since 
    111          ! boundary condition on sea level is set during ts loop 
    112 # if defined key_agrif 
    113          CALL agrif_ssh( kt ) 
    114 # endif 
    115111         IF( ln_bdy ) THEN 
    116112            CALL lbc_lnk( ssha, 'T', 1. )    ! Not sure that's necessary 
     
    118114         ENDIF 
    119115      ENDIF 
    120  
    121 #if defined key_asminc 
    122       IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN     ! Include the IAU weighted SSH increment 
    123          CALL ssh_asm_inc( kt ) 
    124          ssha(:,:) = ssha(:,:) + z2dt * ssh_iau(:,:) 
    125       ENDIF 
    126 #endif 
    127116      !                                           !------------------------------! 
    128117      !                                           !           outputs            ! 
     
    209198      ENDIF 
    210199      ! 
    211       IF( ln_timing )   CALL timing_stop('wzv') 
     200#if defined key_agrif  
     201      IF( .NOT. AGRIF_Root() ) THEN  
     202         IF ((nbondi ==  1).OR.(nbondi == 2)) wn(nlci-1 , :     ,:) = 0.e0      ! east  
     203         IF ((nbondi == -1).OR.(nbondi == 2)) wn(2      , :     ,:) = 0.e0      ! west  
     204         IF ((nbondj ==  1).OR.(nbondj == 2)) wn(:      ,nlcj-1 ,:) = 0.e0      ! north  
     205         IF ((nbondj == -1).OR.(nbondj == 2)) wn(:      ,2      ,:) = 0.e0      ! south  
     206      ENDIF  
     207#endif  
     208      ! 
     209      IF( nn_timing == 1 )  CALL timing_stop('wzv') 
    212210      ! 
    213211   END SUBROUTINE wzv 
     
    246244      ENDIF 
    247245      !              !==  Euler time-stepping: no filter, just swap  ==! 
    248       IF(  ( neuler == 0 .AND. kt == nit000 ) .OR.    & 
    249          & ( ln_bt_fw    .AND. ln_dynspg_ts )      ) THEN  
     246      IF  ( neuler == 0 .AND. kt == nit000 ) THEN 
    250247         sshb(:,:) = sshn(:,:)                              ! before <-- now 
    251248         sshn(:,:) = ssha(:,:)                              ! now    <-- after  (before already = now) 
Note: See TracChangeset for help on using the changeset viewer.