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 1756 for trunk/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2009-11-25T15:15:20+01:00 (14 years ago)
Author:
smasson
Message:

implement AR5 diagnostics, see ticket:610

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DYN/sshwzv.F90

    r1739 r1756  
    2525   USE obc_par         ! open boundary cond. parameter 
    2626   USE obc_oce 
     27   USE diaar5, ONLY :   lk_diaar5 
    2728   USE iom 
    2829 
     
    6566      !!                hu, hv, hur, hvr : ocean depth and its inverse at u-,v-points 
    6667      !!---------------------------------------------------------------------- 
     68      USE oce, ONLY :   z3d => ta   ! use ta as 3D workspace 
     69      !! 
    6770      INTEGER, INTENT(in) ::   kt   ! time step 
    6871      !! 
     
    7174      REAL(wp) ::   z2dt, zraur     ! temporary scalars 
    7275      REAL(wp), DIMENSION(jpi,jpj) ::   zhdiv       ! 2D workspace 
     76      REAL(wp), DIMENSION(jpi,jpj) ::   z2d         ! 2D workspace 
    7377      !!---------------------------------------------------------------------- 
    7478 
     
    193197      END DO 
    194198      ! 
    195       CALL iom_put( "woce", wn   )                     ! vertical velocity 
    196       CALL iom_put( "ssh" , sshn )                     ! sea surface height 
     199      CALL iom_put( "woce", wn                    )   ! vertical velocity 
     200      CALL iom_put( "ssh" , sshn                  )   ! sea surface height 
     201      CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) )   ! square of sea surface height 
     202      IF( lk_diaar5 ) THEN 
     203         z2d(:,:) = rau0 * e1t(:,:) * e2t(:,:) 
     204         DO jk = 1, jpk 
     205            z3d(:,:,jk) = wn(:,:,jk) * z2d(:,:) 
     206         END DO 
     207         CALL iom_put( "w_masstr" , z3d                     )   !           vertical mass transport 
     208         CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) )   ! square of vertical mass transport 
     209      ENDIF 
    197210      ! 
    198211   END SUBROUTINE ssh_wzv 
Note: See TracChangeset for help on using the changeset viewer.