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 15260 for NEMO/branches/NERC/dev_r4.0.6_GEOMETRIC/tests – NEMO

Ignore:
Timestamp:
2021-09-14T18:31:24+02:00 (3 years ago)
Author:
acc
Message:

Untested, initial port of GEOMETRIC changes. Includes a bug fix to eken diagnostic in diawri.F90 which, if confirmed, is also relevant to current 4.0-HEAD. #2722

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/NERC/dev_r4.0.6_GEOMETRIC/tests/CANAL/MY_SRC/diawri.F90

    r13284 r15260  
    212212      ENDIF 
    213213 
    214       CALL iom_put( "woce", wn )                   ! vertical velocity 
     214      !                                            ! vertical velocity 
     215      IF( ln_zad_Aimp ) THEN   ;   CALL iom_put( "woce", wn + wi )   ! explicit plus implicit parts 
     216      ELSE                     ;   CALL iom_put( "woce", wn ) 
     217      ENDIF 
     218 
    215219      IF( iom_use('w_masstr') .OR. iom_use('w_masstr2') ) THEN   ! vertical mass transport & its square value 
    216          ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
    217          z2d(:,:) = rau0 * e1e2t(:,:) 
     220         !                     ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
    218221         DO jk = 1, jpk 
    219             z3d(:,:,jk) = wn(:,:,jk) * z2d(:,:) 
     222            IF( ln_zad_Aimp ) THEN 
     223               z3d(:,:,jk) = rau0 * e1e2t(:,:) * ( wn(:,:,jk) + wi(:,:,jk) ) 
     224            ELSE 
     225               z3d(:,:,jk) = rau0 * e1e2t(:,:) * wn(:,:,jk) 
     226            ENDIF 
    220227         END DO 
    221228         CALL iom_put( "w_masstr" , z3d )   
    222          IF( iom_use('w_masstr2') )   CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
     229         IF( iom_use('w_masstr2') )   CALL iom_put( "w_masstr2", z3d * z3d ) 
    223230      ENDIF 
    224231 
Note: See TracChangeset for help on using the changeset viewer.