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

Ignore:
Timestamp:
2016-02-24T19:50:11+01:00 (8 years ago)
Author:
cetlod
Message:

trunk: move the output of scale factor before time swapping and output some variables needs for offline, see ticket #1682

File:
1 edited

Legend:

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

    r6140 r6351  
    140140      ENDIF 
    141141 
    142       IF( ln_linssh ) THEN 
    143          CALL iom_put( "e3t" , e3t_n(:,:,:) ) 
    144          CALL iom_put( "e3u" , e3u_n(:,:,:) ) 
    145          CALL iom_put( "e3v" , e3v_n(:,:,:) ) 
    146          CALL iom_put( "e3w" , e3w_n(:,:,:) ) 
    147       ENDIF 
     142      ! Output of initial vertical scale factor 
     143      CALL iom_put("e3t_0", e3t_0(:,:,:) ) 
     144      CALL iom_put("e3u_0", e3t_0(:,:,:) ) 
     145      CALL iom_put("e3v_0", e3t_0(:,:,:) ) 
     146      ! 
     147      CALL iom_put( "e3t" , fse3t_n(:,:,:) ) 
     148      CALL iom_put( "e3u" , fse3u_n(:,:,:) ) 
     149      CALL iom_put( "e3v" , fse3v_n(:,:,:) ) 
     150      CALL iom_put( "e3w" , fse3w_n(:,:,:) ) 
     151      IF( iom_use("e3tdef") )   & 
     152         CALL iom_put( "e3tdef"  , ( ( fse3t_n(:,:,:) - e3t_0(:,:,:) ) / e3t_0(:,:,:) * 100 * tmask(:,:,:) ) ** 2 ) 
    148153 
    149154      CALL iom_put( "ssh" , sshn )                 ! sea surface height 
    150       if( iom_use('ssh2') )   CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) )   ! square of sea surface height 
    151155       
    152156      CALL iom_put( "toce", tsn(:,:,:,jp_tem) )    ! 3D temperature 
     
    228232      CALL iom_put( "avm" , avmu                       )    ! T vert. eddy visc. coef. 
    229233      CALL iom_put( "avs" , fsavs(:,:,:)               )    ! S vert. eddy diff. coef. (useful only with key_zdfddm) 
     234 
     235      IF( iom_use('logavt') )   CALL iom_put( "logavt", LOG( MAX( 1.e-20_wp, avt  (:,:,:) ) ) ) 
     236      IF( iom_use('logavs') )   CALL iom_put( "logavs", LOG( MAX( 1.e-20_wp, fsavs(:,:,:) ) ) ) 
    230237 
    231238      IF ( iom_use("sstgrad") .OR. iom_use("sstgrad2") ) THEN 
     
    292299         CALL iom_put( "eken", rke )            
    293300      ENDIF 
    294           
     301      ! 
     302      CALL iom_put( "hdiv", hdivn )                  ! Horizontal divergence 
     303      ! 
    295304      IF( iom_use("u_masstr") .OR. iom_use("u_heattr") .OR. iom_use("u_salttr") ) THEN 
    296305         z3d(:,:,jpk) = 0.e0 
Note: See TracChangeset for help on using the changeset viewer.