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 5770 for branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2015-10-01T14:48:08+02:00 (9 years ago)
Author:
gm
Message:

#1593: LDF-ADV, step II.2: phasing the improvements/simplifications of advective tracer trend (see wiki page)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r5737 r5770  
    8080      IF( nn_timing == 1 )  CALL timing_start('ssh_nxt') 
    8181      ! 
    82       CALL wrk_alloc( jpi, jpj, zhdiv )  
     82      CALL wrk_alloc( jpi,jpj,  zhdiv )  
    8383      ! 
    8484      IF( kt == nit000 ) THEN 
    85          ! 
    8685         IF(lwp) WRITE(numout,*) 
    8786         IF(lwp) WRITE(numout,*) 'ssh_nxt : after sea surface height' 
    8887         IF(lwp) WRITE(numout,*) '~~~~~~~ ' 
    89          ! 
    9088      ENDIF 
    9189      ! 
     
    159157      !! Reference  : Leclair, M., and G. Madec, 2009, Ocean Modelling. 
    160158      !!---------------------------------------------------------------------- 
    161       ! 
    162       INTEGER, INTENT(in) ::   kt           ! time step 
     159      INTEGER, INTENT(in) ::   kt   ! time step 
     160      ! 
     161      INTEGER  ::   ji, jj, jk   ! dummy loop indices 
     162      REAL(wp) ::   z1_2dt       ! local scalars 
    163163      REAL(wp), POINTER, DIMENSION(:,:  ) ::  z2d 
    164164      REAL(wp), POINTER, DIMENSION(:,:,:) ::  z3d, zhdiv 
    165       ! 
    166       INTEGER             ::   ji, jj, jk   ! dummy loop indices 
    167       REAL(wp)            ::   z1_2dt       ! local scalars 
    168       !!---------------------------------------------------------------------- 
    169        
     165      !!---------------------------------------------------------------------- 
     166      ! 
    170167      IF( nn_timing == 1 )  CALL timing_start('wzv') 
    171168      ! 
    172169      IF( kt == nit000 ) THEN 
    173          ! 
    174170         IF(lwp) WRITE(numout,*) 
    175171         IF(lwp) WRITE(numout,*) 'wzv : now vertical velocity ' 
     
    177173         ! 
    178174         wn(:,:,jpk) = 0._wp                  ! bottom boundary condition: w=0 (set once for all) 
    179          ! 
    180175      ENDIF 
    181176      !                                           !------------------------------! 
     
    216211 
    217212#if defined key_bdy 
    218       IF (lk_bdy) THEN 
     213      IF( lk_bdy ) THEN 
    219214         DO jk = 1, jpkm1 
    220215            wn(:,:,jk) = wn(:,:,jk) * bdytmask(:,:) 
     
    224219      ! 
    225220      IF( nn_timing == 1 )  CALL timing_stop('wzv') 
    226  
    227  
     221      ! 
    228222   END SUBROUTINE wzv 
     223 
    229224 
    230225   SUBROUTINE ssh_swp( kt ) 
     
    265260         sshb(:,:) = sshn(:,:)                           ! before <-- now 
    266261         sshn(:,:) = ssha(:,:)                           ! now    <-- after  (before already = now) 
     262         ! 
    267263      ELSE                                         !** Leap-Frog time-stepping: Asselin filter + swap 
    268264         sshb(:,:) = sshn(:,:) + atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:) )     ! before <-- now filtered 
Note: See TracChangeset for help on using the changeset viewer.