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 15102 – NEMO

Changeset 15102


Ignore:
Timestamp:
2021-07-07T14:42:35+02:00 (3 years ago)
Author:
clem
Message:

nn_hls=2: debug implicit vertical advection (ln_zad_Aimp=T) and remove one useless lbc_lnk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/DYN/sshwzv.F90

    r15058 r15102  
    359359         IF(lwp) WRITE(numout,*) 'wAimp : Courant number-based partitioning of now vertical velocity ' 
    360360         IF(lwp) WRITE(numout,*) '~~~~~ ' 
    361          wi(:,:,:) = 0._wp 
    362361      ENDIF 
    363362      ! 
     
    365364      zdt = 2._wp * rn_Dt                            ! 2*rn_Dt and not rDt (for restartability) 
    366365      IF( ln_vvl_ztilde .OR. ln_vvl_layer ) THEN 
    367          DO_3D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 1, jpkm1 ) 
     366         DO_3D( nn_hls-1, nn_hls, nn_hls-1, nn_hls, 1, jpkm1 ) 
    368367            z1_e3t = 1._wp / e3t(ji,jj,jk,Kmm) 
    369368            Cu_adv(ji,jj,jk) =   zdt *                                                         & 
     
    382381         END_3D 
    383382      ELSE 
    384          DO_3D( nn_hls-1, nn_hls-1, nn_hls-1, nn_hls-1, 1, jpkm1 ) 
     383         DO_3D( nn_hls-1, nn_hls, nn_hls-1, nn_hls, 1, jpkm1 ) 
    385384            z1_e3t = 1._wp / e3t(ji,jj,jk,Kmm) 
    386385            Cu_adv(ji,jj,jk) =   zdt *                                                      & 
     
    395394         END_3D 
    396395      ENDIF 
    397       IF (nn_hls==1) CALL lbc_lnk( 'sshwzv', Cu_adv, 'T', 1.0_wp ) 
    398       ! 
    399396      CALL iom_put("Courant",Cu_adv) 
    400397      ! 
    401398      IF( MAXVAL( Cu_adv(:,:,:) ) > Cu_min ) THEN       ! Quick check if any breaches anywhere 
    402          DO_3DS( nn_hls, nn_hls, nn_hls, nn_hls, jpkm1, 2, -1 )             ! or scan Courant criterion and partition ! w where necessary 
     399         DO_3DS( nn_hls-1, nn_hls, nn_hls-1, nn_hls, jpkm1, 2, -1 )    ! or scan Courant criterion and partition ! w where necessary 
    403400            ! 
    404401            zCu = MAX( Cu_adv(ji,jj,jk) , Cu_adv(ji,jj,jk-1) ) 
     
    428425      ELSE 
    429426         ! Fully explicit everywhere 
    430          Cu_adv(:,:,:) = 0._wp                          ! Reuse array to output coefficient below and in stp_ctl 
     427         Cu_adv(:,:,:) = 0._wp                    ! Reuse array to output coefficient below and in stp_ctl 
    431428         wi    (:,:,:) = 0._wp 
    432429      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.