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

Changeset 14580


Ignore:
Timestamp:
2021-03-04T10:32:30+01:00 (3 years ago)
Author:
clem
Message:

4.0-HEAD: solve ticket #2620

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/releases/r4.0/r4.0-HEAD/src/OCE/DIA/diawri.F90

    r13085 r14580  
    211211      ENDIF 
    212212 
    213       IF( ln_zad_Aimp ) wn = wn + wi               ! Recombine explicit and implicit parts of vertical velocity for diagnostic output 
    214       ! 
    215       CALL iom_put( "woce", wn )                   ! vertical velocity 
     213      !                                            ! vertical velocity 
     214      IF( ln_zad_Aimp ) THEN   ;   CALL iom_put( "woce", wn + wi )   ! explicit plus implicit parts 
     215      ELSE                     ;   CALL iom_put( "woce", wn ) 
     216      ENDIF 
     217 
    216218      IF( iom_use('w_masstr') .OR. iom_use('w_masstr2') ) THEN   ! vertical mass transport & its square value 
    217          ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
    218          z2d(:,:) = rau0 * e1e2t(:,:) 
     219         !                     ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
    219220         DO jk = 1, jpk 
    220             z3d(:,:,jk) = wn(:,:,jk) * z2d(:,:) 
     221            IF( ln_zad_Aimp ) THEN 
     222               z3d(:,:,jk) = rau0 * e1e2t(:,:) * ( wn(:,:,jk) + wi(:,:,jk) ) 
     223            ELSE 
     224               z3d(:,:,jk) = rau0 * e1e2t(:,:) * wn(:,:,jk) 
     225            ENDIF 
    221226         END DO 
    222227         CALL iom_put( "w_masstr" , z3d )   
    223          IF( iom_use('w_masstr2') )   CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
    224       ENDIF 
    225       ! 
    226       IF( ln_zad_Aimp ) wn = wn - wi               ! Remove implicit part of vertical velocity that was added for diagnostic output 
    227  
     228         IF( iom_use('w_masstr2') )   CALL iom_put( "w_masstr2", z3d * z3d ) 
     229      ENDIF 
     230       
    228231      CALL iom_put( "avt" , avt )                  ! T vert. eddy diff. coef. 
    229232      CALL iom_put( "avs" , avs )                  ! S vert. eddy diff. coef. 
Note: See TracChangeset for help on using the changeset viewer.