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 5930 for trunk/NEMOGCM/NEMO/OPA_SRC/DIA – NEMO

Ignore:
Timestamp:
2015-11-26T17:07:10+01:00 (8 years ago)
Author:
jchanut
Message:

#1620 Merge free surface simplification into trunk

Location:
trunk/NEMOGCM/NEMO/OPA_SRC/DIA
Files:
2 edited

Legend:

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

    r5586 r5930  
    1414   USE dom_oce         ! ocean space and time domain 
    1515   USE phycst 
    16    USE dynspg_oce 
    17    USE dynspg_ts 
    1816   USE daymod 
    1917   USE tide_mod 
  • trunk/NEMOGCM/NEMO/OPA_SRC/DIA/diawri.F90

    r5836 r5930  
    3030   USE zdf_oce         ! ocean vertical physics 
    3131   USE ldftra          ! lateral physics: eddy diffusivity coef. 
    32    USE sol_oce         ! solver variables 
    3332   USE sbc_oce         ! Surface boundary condition: ocean fields 
    3433   USE sbc_ice         ! Surface boundary condition: ice fields 
     
    4645   USE iom 
    4746   USE ioipsl 
    48    USE dynspg_oce, ONLY: un_adv, vn_adv ! barotropic velocities      
    4947 
    5048#if defined key_lim2 
     
    206204         CALL iom_put( "sbu", z2d )                ! bottom i-current 
    207205      ENDIF 
    208 #if defined key_dynspg_ts 
    209       CALL iom_put(  "ubar", un_adv(:,:)      )    ! barotropic i-current 
    210 #else 
    211       CALL iom_put(  "ubar", un_b(:,:)        )    ! barotropic i-current 
    212 #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 
    213212       
    214213      CALL iom_put( "voce", vn(:,:,:)         )    ! 3D j-current 
     
    223222         CALL iom_put( "sbv", z2d )                ! bottom j-current 
    224223      ENDIF 
    225 #if defined key_dynspg_ts 
    226       CALL iom_put(  "vbar", vn_adv(:,:)      )    ! barotropic j-current 
    227 #else 
    228       CALL iom_put(  "vbar", vn_b(:,:)        )    ! barotropic j-current 
    229 #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 
    230230 
    231231      CALL iom_put( "woce", wn )                   ! vertical velocity 
Note: See TracChangeset for help on using the changeset viewer.