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 5461 for trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2015-06-22T14:40:22+02:00 (9 years ago)
Author:
jchanut
Message:

Move output of wn and sshn in diawri, see ticket #1543

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90

    r5460 r5461  
    149149         CALL iom_put( "e3w" , fse3w_n(:,:,:) ) 
    150150      ENDIF 
     151 
     152      CALL iom_put( "ssh" , sshn )                 ! sea surface height 
     153      if( iom_use('ssh2') )   CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) )   ! square of sea surface height 
    151154       
    152155      CALL iom_put( "toce", tsn(:,:,:,jp_tem) )    ! 3D temperature 
     
    196199         END DO 
    197200         CALL iom_put( "sbv", z2d )                ! bottom j-current 
     201      ENDIF 
     202 
     203      CALL iom_put( "woce", wn )                   ! vertical velocity 
     204      IF( iom_use('w_masstr') .OR. iom_use('w_masstr2') ) THEN   ! vertical mass transport & its square value 
     205         ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
     206         z2d(:,:) = rau0 * e12t(:,:) 
     207         DO jk = 1, jpk 
     208            z3d(:,:,jk) = wn(:,:,jk) * z2d(:,:) 
     209         END DO 
     210         CALL iom_put( "w_masstr" , z3d )   
     211         IF( iom_use('w_masstr2') )   CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
    198212      ENDIF 
    199213 
Note: See TracChangeset for help on using the changeset viewer.