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 5902 for branches/2015/dev_r5847_MERCATOR9_solveur_simplification/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90 – NEMO

Ignore:
Timestamp:
2015-11-20T10:58:48+01:00 (8 years ago)
Author:
jchanut
Message:

Free surface simplification #1620. Step 3: Step readibility, suppress cpp key_dynspg_xxx

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5847_MERCATOR9_solveur_simplification/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90

    r5868 r5902  
    4545   USE iom 
    4646   USE ioipsl 
    47    USE dynspg_oce, ONLY: un_adv, vn_adv ! barotropic velocities      
    4847 
    4948#if defined key_lim2 
     
    205204         CALL iom_put( "sbu", z2d )                ! bottom i-current 
    206205      ENDIF 
    207 #if defined key_dynspg_ts 
    208       CALL iom_put(  "ubar", un_adv(:,:)      )    ! barotropic i-current 
    209 #else 
    210       CALL iom_put(  "ubar", un_b(:,:)        )    ! barotropic i-current 
    211 #endif 
     206 
     207      IF ( ln_dynspg_ts ) THEN 
     208         CALL iom_put(  "ubar", un_adv(:,:)      )    ! barotropic i-current 
     209      ELSE 
     210         CALL iom_put(  "ubar", un_b(:,:)        )    ! barotropic i-current 
     211      ENDIF 
    212212       
    213213      CALL iom_put( "voce", vn(:,:,:)         )    ! 3D j-current 
     
    222222         CALL iom_put( "sbv", z2d )                ! bottom j-current 
    223223      ENDIF 
    224 #if defined key_dynspg_ts 
    225       CALL iom_put(  "vbar", vn_adv(:,:)      )    ! barotropic j-current 
    226 #else 
    227       CALL iom_put(  "vbar", vn_b(:,:)        )    ! barotropic j-current 
    228 #endif 
     224 
     225      IF ( ln_dynspg_ts ) THEN 
     226         CALL iom_put(  "vbar", vn_adv(:,:)      )    ! barotropic j-current 
     227      ELSE 
     228         CALL iom_put(  "vbar", vn_b(:,:)        )    ! barotropic j-current 
     229      ENDIF 
    229230 
    230231      CALL iom_put( "woce", wn )                   ! vertical velocity 
Note: See TracChangeset for help on using the changeset viewer.