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 4967 for branches/2014/dev_MERGE_2014/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2014-12-03T15:06:15+01:00 (10 years ago)
Author:
smasson
Message:

dev_MERGE_2014: add iom_use

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_MERGE_2014/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r4726 r4967  
    3131   USE bdy_par          
    3232   USE bdydyn2d        ! bdy_ssh routine 
    33    USE diaar5, ONLY:   lk_diaar5 
    3433   USE iom 
    3534#if defined key_agrif 
     
    138137      !                                           !           outputs            ! 
    139138      !                                           !------------------------------! 
    140       CALL iom_put( "ssh" , sshn                  )   ! sea surface height 
    141       CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) )   ! square of sea surface height 
     139      CALL iom_put( "ssh" , sshn )   ! sea surface height 
     140      if( iom_use('ssh2') )   CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) )   ! square of sea surface height 
    142141      ! 
    143142      IF(ln_ctl)   CALL prt_ctl( tab2d_1=ssha, clinfo1=' ssha  - : ', mask1=tmask, ovlap=1 ) 
     
    233232      !                                           !------------------------------! 
    234233      CALL iom_put( "woce", wn )   ! vertical velocity 
    235       IF( lk_diaar5 ) THEN                            ! vertical mass transport & its square value 
     234      IF( iom_use('w_masstr') .OR. iom_use('w_masstr2') ) THEN   ! vertical mass transport & its square value 
    236235         CALL wrk_alloc( jpi, jpj, z2d )  
    237236         CALL wrk_alloc( jpi, jpj, jpk, z3d )  
     
    241240            z3d(:,:,jk) = wn(:,:,jk) * z2d(:,:) 
    242241         END DO 
    243          CALL iom_put( "w_masstr" , z3d                      
    244          CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
     242         CALL iom_put( "w_masstr" , z3d  
     243         IF( iom_use('w_masstr2') )   CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
    245244         CALL wrk_dealloc( jpi, jpj, z2d  )  
    246245         CALL wrk_dealloc( jpi, jpj, jpk, z3d )  
Note: See TracChangeset for help on using the changeset viewer.