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 11541 for NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/DYN/divhor.F90 – NEMO

Ignore:
Timestamp:
2019-09-12T18:41:17+02:00 (5 years ago)
Author:
mathiot
Message:

ENHANCE-02_ISF: simplify use of ln_isf, add extra comments + minor changes (ticket #2142)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/DYN/divhor.F90

    r11529 r11541  
    6464      INTEGER  ::   ji, jj, jk    ! dummy loop indices 
    6565      REAL(wp) ::   zraur, zdep   ! local scalars 
     66      REAL(wp), DIMENSION(jpi,jpj) :: ztmp 
    6667      !!---------------------------------------------------------------------- 
    6768      ! 
     
    8586         END DO   
    8687      END DO 
     88 
     89      ztmp = 0.0 
     90      DO jk = jpkm1,1,-1 
     91         ztmp(:,:) = ztmp(:,:) + hdivn(:,:,jk) * e3t_n(:,:,jk) 
     92      END DO 
     93      CALL debug('divhor 1',ztmp) 
     94 
    8795#if defined key_agrif 
    8896      IF( .NOT. Agrif_Root() ) THEN 
     
    105113      CALL lbc_lnk( 'divhor', hdivn, 'T', 1. )   !   (no sign change) 
    106114      ! 
     115      ztmp = 0.0 
     116      DO jk = jpkm1,1,-1 
     117         ztmp(:,:) = ztmp(:,:) + hdivn(:,:,jk) * e3t_n(:,:,jk) 
     118      END DO 
     119      CALL debug('divhor 2',ztmp) 
     120      ! 
    107121      IF( ln_timing )   CALL timing_stop('div_hor') 
    108122      ! 
Note: See TracChangeset for help on using the changeset viewer.