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 14983 for NEMO/trunk/src/OCE/ZDF/zdfphy.F90 – NEMO

Ignore:
Timestamp:
2021-06-11T17:11:20+02:00 (3 years ago)
Author:
clem
Message:

trunk: small sneaky enhancement related to ticket #2661 (adding dissipation outputs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ZDF/zdfphy.F90

    r14967 r14983  
    375375      ENDIF 
    376376      ! 
     377      ! diagnostics of energy dissipation 
     378      IF( iom_use('avt_k') .OR. iom_use('avm_k') .OR. iom_use('eshear_k') .OR. iom_use('estrat_k') ) THEN 
     379         IF( l_zdfsh2 ) THEN 
     380            zsh2(:,:,1  ) = 0._wp 
     381            zsh2(:,:,jpk) = 0._wp 
     382            CALL lbc_lnk( 'zdfphy', zsh2, 'W', 1._wp ) 
     383            CALL iom_put( 'avt_k'   ,   avt_k       * wmask ) 
     384            CALL iom_put( 'avm_k'   ,   avm_k       * wmask ) 
     385            CALL iom_put( 'eshear_k',   zsh2        * wmask ) 
     386            CALL iom_put( 'estrat_k', - avt_k * rn2 * wmask ) 
     387         ENDIF 
     388      ENDIF 
     389      ! 
    377390      IF( ln_timing )   CALL timing_stop('zdf_phy') 
    378391      ! 
Note: See TracChangeset for help on using the changeset viewer.