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 719 for trunk/NEMO/OPA_SRC/TRA – NEMO

Changeset 719 for trunk/NEMO/OPA_SRC/TRA


Ignore:
Timestamp:
2007-10-16T16:59:56+02:00 (17 years ago)
Author:
ctlod
Message:

get back to the nemo_v2_3 version for trunk

Location:
trunk/NEMO/OPA_SRC/TRA
Files:
27 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/TRA/traadv.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4646   !!---------------------------------------------------------------------- 
    4747   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    48    !! $Id$ 
     48   !! $Header: /home/opalod/NEMOCVSROOT/NEMO/OPA_SRC/TRA/traadv.F90,v 1.7 2007/06/05 11:00:53 opalod Exp $  
    4949   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    5050   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traadv_cen2.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r717 r719  
    11MODULE traadv_cen2 
    2    !!====================================================================== 
    3    !!                     ***  MODULE  traadv_cen2  *** 
     2   !!============================================================================== 
     3   !!                       ***  MODULE  traadv_cen2  *** 
    44   !! Ocean active tracers:  horizontal & vertical advective trend 
    5    !!====================================================================== 
    6    !! History :   8.2  !  01-08  (G. Madec, E. Durand)  trahad+trazad=traadv  
    7    !!             8.5  !  02-06  (G. Madec)  F90: Free form and module 
    8    !!             9.0  !  04-08  (C. Talandier) New trends organization 
    9    !!             " "  !  05-11  (V. Garnier) Surface pressure gradient organization 
    10    !!             " "  !  06-04  (R. Benshila, G. Madec) Step reorganization 
    11    !!             " "  !  06-07  (G. madec)  add ups_orca_set routine 
     5   !!============================================================================== 
     6   !! History :  8.2  !  01-08  (G. Madec, E. Durand)  trahad+trazad = traadv  
     7   !!            8.5  !  02-06  (G. Madec)  F90: Free form and module 
     8   !!            9.0  !  05-11  (V. Garnier) Surface pressure gradient organization 
     9   !!            " "  !  06-04  (R. Benshila, G. Madec) Step reorganization 
    1210   !!---------------------------------------------------------------------- 
    1311 
     
    1614   !!                  vertical advection trends using a seconder order 
    1715   !!                  centered scheme. (k-j-i loops) 
    18    !!   ups_orca_set : allow mixed upstream/centered scheme in specific 
    19    !!                  area (set for orca 2 and 4 only) 
    2016   !!---------------------------------------------------------------------- 
    2117   USE oce             ! ocean dynamics and active tracers 
    2218   USE dom_oce         ! ocean space and time domain 
    23    USE sbc_oce         ! surface boundary condition: ocean 
    24    USE dynspg_oce      ! choice/control of key cpp for surface pressure gradient 
     19   USE trdmod          ! ocean active tracers trends  
    2520   USE trdmod_oce      ! ocean variables trends 
    26    USE trdmod          ! ocean active tracers trends  
    27    USE closea          ! closed sea 
     21   USE flxrnf          ! 
    2822   USE trabbl          ! advective term in the BBL 
    2923   USE ocfzpt          ! 
    30    USE sbcrnf          ! river runoffs 
    31    USE in_out_manager  ! I/O manager 
    3224   USE lib_mpp 
    3325   USE lbclnk          ! ocean lateral boundary condition (or mpp link) 
     26   USE in_out_manager  ! I/O manager 
    3427   USE diaptr          ! poleward transport diagnostics 
     28   USE dynspg_oce      ! choice/control of key cpp for surface pressure gradient 
    3529   USE prtctl          ! Print control 
    3630 
     
    3832   PRIVATE 
    3933 
    40    PUBLIC   tra_adv_cen2    ! routine called by step.F90 
    41    PUBLIC   ups_orca_set    ! routine used by traadv_cen2_jki.F90 
    42  
    43    REAL(wp), PUBLIC, DIMENSION(jpi,jpj) ::   upsmsk    !: mixed upstream/centered scheme near some straits  
    44    !                                                   !  and in closed seas (orca 2 and 4 configurations) 
     34   PUBLIC   tra_adv_cen2   ! routine called by step.F90 
    4535 
    4636   REAL(wp), DIMENSION(jpi,jpj) ::   btr2   ! inverse of T-point surface [1/(e1t*e2t)] 
     
    5040#  include "vectopt_loop_substitute.h90" 
    5141   !!---------------------------------------------------------------------- 
    52    !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    53    !! $Id$ 
     42   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
     43   !! $Header$  
    5444   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    5545   !!---------------------------------------------------------------------- 
     
    129119      !! 
    130120      INTEGER  ::   ji, jj, jk                           ! dummy loop indices 
    131       REAL(wp) ::   zta, zsa, zbtr, zhw, ze3tr,       &  ! temporary scalars 
    132          &          zfp_ui, zfp_vj, zfp_w , zfui  ,   &  !    "         " 
    133          &          zfm_ui, zfm_vj, zfm_w , zfvj  ,   &  !    "         " 
    134          &          zcofi , zcofj , zcofk ,           &  !    "         " 
    135          &          zupsut, zupsus, zcenut, zcenus,   &  !    "         " 
    136          &          zupsvt, zupsvs, zcenvt, zcenvs,   &  !    "         " 
    137          &          zupst , zupss , zcent , zcens ,   &  !    "         " 
    138          &          z_hdivn_x, z_hdivn_y, z_hdivn  
    139       REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zwz, ztrdt, zind   ! 3D workspace 
     121      REAL(wp) ::                           & 
     122         zbtr, zta, zsa, zfui, zfvj,        &  ! temporary scalars 
     123         zhw, ze3tr, zcofi, zcofj,          &  !    "         " 
     124         zupsut, zupsvt, zupsus, zupsvs,    &  !    "         " 
     125         zfp_ui, zfp_vj, zfm_ui, zfm_vj,    &  !    "         " 
     126         zcofk, zupst, zupss, zcent,        &  !    "         " 
     127         zcens, zfp_w, zfm_w,               &  !    "         " 
     128         zcenut, zcenvt, zcenus, zcenvs,    &  !    "         " 
     129         z_hdivn_x, z_hdivn_y, z_hdivn 
     130      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zwz, ztrdt, zind   ! 3D workspace  
    140131      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zww, ztrds         !  "      " 
    141132      !!---------------------------------------------------------------------- 
     
    146137         IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~   Vector optimization case' 
    147138         IF(lwp) WRITE(numout,*) 
    148          ! 
    149          upsmsk(:,:) = 0.e0                              ! not upstream by default 
    150          IF( cp_cfg == "orca" )   CALL ups_orca_set      ! set mixed Upstream/centered scheme near some straits 
    151          !                                               ! and in closed seas (orca2 and orca4 only) 
    152          !    
    153          btr2(:,:) = 1. / ( e1t(:,:) * e2t(:,:) )        ! inverse of T-point surface 
     139         !  
     140         btr2(:,:) = 1. / ( e1t(:,:) * e2t(:,:) ) 
    154141      ENDIF 
    155142 
     
    159146         DO jj = 1, jpj 
    160147            DO ji = 1, jpi 
    161                zind(ji,jj,jk) = MAX (   & 
    162                   rnfmsk(ji,jj) * rnfmsk_z(jk),      &  ! near runoff mouths (& closed sea outflows) 
    163                   upsmsk(ji,jj)                      &  ! some of some straits 
     148               zind(ji,jj,jk) =  MAX ( upsrnfh(ji,jj) * upsrnfz(jk),     &  ! changing advection scheme near runoff 
     149                  &                    upsadv(ji,jj)                     &  ! in the vicinity of some straits 
    164150#if defined key_ice_lim 
    165                   !                                     ! below ice covered area (if tn < "freezing"+0.1 ) 
    166                   , MAX(  0., SIGN( 1., fzptn(ji,jj) + 0.1 - tn(ji,jj,jk) )  ) * tmask(ji,jj,jk)   & 
     151                  &                  , tmask(ji,jj,jk)                   &  ! half upstream tracer fluxes 
     152                  &                  * MAX( 0., SIGN( 1., fzptn(ji,jj)   &  ! if tn < ("freezing"+0.1 ) 
     153                  &                                +0.1-tn(ji,jj,jk) ) ) & 
    167154#endif 
    168155                  &                  ) 
     
    171158      END DO 
    172159 
    173       ! I. Horizontal advective fluxes 
    174       ! ------------------------------ 
    175       !  Second order centered tracer flux at u and v-points 
    176       ! ----------------------------------------------------- 
     160 
     161      !  Horizontal advective fluxes 
     162      ! ----------------------------- 
    177163      !                                                ! =============== 
    178164      DO jk = 1, jpkm1                                 ! Horizontal slab 
     
    222208               zbtr = btr2(ji,jj) / fse3t(ji,jj,jk) 
    223209#endif 
    224                zta = - zbtr * (  zwx(ji,jj,jk) - zwx(ji-1,jj  ,jk)   &    ! horizontal advective trends 
     210               ! horizontal advective trends 
     211               zta = - zbtr * (  zwx(ji,jj,jk) - zwx(ji-1,jj  ,jk)   & 
    225212                  &            + zwy(ji,jj,jk) - zwy(ji  ,jj-1,jk)  ) 
    226213               zsa = - zbtr * (  zww(ji,jj,jk) - zww(ji-1,jj  ,jk)   & 
    227214                  &            + zwz(ji,jj,jk) - zwz(ji  ,jj-1,jk)  ) 
    228                ta(ji,jj,jk) = ta(ji,jj,jk) + zta                          ! add it to the general tracer trends 
     215               ! add it to the general tracer trends 
     216               ta(ji,jj,jk) = ta(ji,jj,jk) + zta 
    229217               sa(ji,jj,jk) = sa(ji,jj,jk) + zsa 
    230218            END DO 
     
    291279         &                       tab3d_2=sa, clinfo2=            ' Sa: ', mask2=tmask, clinfo3='tra' ) 
    292280 
    293       ! "zonal" mean advective heat and salt transport 
     281      ! 4. "zonal" mean advective heat and salt transport  
     282      ! ------------------------------------------------- 
     283 
    294284      IF( ln_diaptr .AND. ( MOD( kt, nf_ptr ) == 0 ) ) THEN 
    295285         IF( lk_zco ) THEN 
     
    323313      ENDIF 
    324314 
    325       ! 1. Vertical advective fluxes (Second order centered tracer flux at w-point) 
     315      ! 1. Vertical advective fluxes 
    326316      ! ---------------------------- 
     317      ! Second order centered tracer flux at w-point 
    327318      DO jk = 2, jpk 
    328319         DO jj = 2, jpjm1 
    329320            DO ji = fs_2, fs_jpim1   ! vector opt. 
    330                zcofk = MAX( zind(ji,jj,jk-1), zind(ji,jj,jk) )         ! upstream indicator 
    331                zhw = 0.5 * pwn(ji,jj,jk)                               ! velocity * 1/2 
    332                zfp_w = zhw + ABS( zhw )                                ! upstream scheme 
     321               ! upstream indicator 
     322               zcofk = MAX( zind(ji,jj,jk-1), zind(ji,jj,jk) ) 
     323               ! velocity * 1/2 
     324               zhw = 0.5 * pwn(ji,jj,jk) 
     325               ! upstream scheme 
     326               zfp_w = zhw + ABS( zhw ) 
    333327               zfm_w = zhw - ABS( zhw ) 
    334328               zupst = zfp_w * tb(ji,jj,jk) + zfm_w * tb(ji,jj,jk-1) 
    335329               zupss = zfp_w * sb(ji,jj,jk) + zfm_w * sb(ji,jj,jk-1) 
    336                zcent = zhw * ( tn(ji,jj,jk) + tn(ji,jj,jk-1) )         ! centered scheme 
     330               ! centered scheme 
     331               zcent = zhw * ( tn(ji,jj,jk) + tn(ji,jj,jk-1) ) 
    337332               zcens = zhw * ( sn(ji,jj,jk) + sn(ji,jj,jk-1) ) 
    338                zwx(ji,jj,jk) = zcofk * zupst + (1.-zcofk) * zcent      ! mixed centered / upstream scheme 
     333               ! mixed centered / upstream scheme 
     334               zwx(ji,jj,jk) = zcofk * zupst + (1.-zcofk) * zcent 
    339335               zwy(ji,jj,jk) = zcofk * zupss + (1.-zcofk) * zcens 
    340336            END DO 
     
    348344            DO ji = fs_2, fs_jpim1   ! vector opt. 
    349345               ze3tr = 1. / fse3t(ji,jj,jk) 
    350                zta = - ze3tr * ( zwx(ji,jj,jk) - zwx(ji,jj,jk+1) )     ! vertical advective trends 
     346               ! vertical advective trends 
     347               zta = - ze3tr * ( zwx(ji,jj,jk) - zwx(ji,jj,jk+1) ) 
    351348               zsa = - ze3tr * ( zwy(ji,jj,jk) - zwy(ji,jj,jk+1) ) 
    352                ta(ji,jj,jk) =  ta(ji,jj,jk) + zta                      ! add it to the general tracer trends 
     349               ! add it to the general tracer trends 
     350               ta(ji,jj,jk) =  ta(ji,jj,jk) + zta 
    353351               sa(ji,jj,jk) =  sa(ji,jj,jk) + zsa 
    354352            END DO 
     
    389387      ! 
    390388   END SUBROUTINE tra_adv_cen2 
    391     
    392     
    393    SUBROUTINE ups_orca_set 
    394       !!---------------------------------------------------------------------- 
    395       !!                  ***  ROUTINE ups_orca_set  *** 
    396       !!        
    397       !! ** Purpose :   add a portion of upstream scheme in area where the 
    398       !!                centered scheme generates too strong overshoot 
    399       !! 
    400       !! ** Method  :   orca (R4 and R2) confiiguration setting. Set upsmsk 
    401       !!                array to nozero value in some straith.  
    402       !! 
    403       !! ** Action : - upsmsk set to 1 at some strait, 0 elsewhere for orca 
    404       !!---------------------------------------------------------------------- 
    405       INTEGER  ::   ii0, ii1, ij0, ij1      ! temporary integers 
    406       !!---------------------------------------------------------------------- 
    407        
    408       ! mixed upstream/centered scheme near river mouths 
    409       ! ------------------------------------------------ 
    410       SELECT CASE ( jp_cfg ) 
    411       !                                        ! ======================= 
    412       CASE ( 4 )                               !  ORCA_R4 configuration  
    413          !                                     ! ======================= 
    414          !                                          ! Gibraltar Strait 
    415          ii0 =  70   ;   ii1 =  71 
    416          ij0 =  52   ;   ij1 =  53   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.50 
    417          ! 
    418          !                                     ! ======================= 
    419       CASE ( 2 )                               !  ORCA_R2 configuration  
    420          !                                     ! ======================= 
    421          !                                          ! Gibraltar Strait 
    422          ij0 = 102   ;   ij1 = 102 
    423          ii0 = 138   ;   ii1 = 138   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.20 
    424          ii0 = 139   ;   ii1 = 139   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.40 
    425          ii0 = 140   ;   ii1 = 140   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.50 
    426          ij0 = 101   ;   ij1 = 102 
    427          ii0 = 141   ;   ii1 = 141   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.50 
    428          !                                          ! Bab el Mandeb Strait 
    429          ij0 =  87   ;   ij1 =  88 
    430          ii0 = 164   ;   ii1 = 164   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.10 
    431          ij0 =  88   ;   ij1 =  88 
    432          ii0 = 163   ;   ii1 = 163   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.25 
    433          ii0 = 162   ;   ii1 = 162   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.40 
    434          ii0 = 160   ;   ii1 = 161   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.50 
    435          ij0 =  89   ;   ij1 =  89 
    436          ii0 = 158   ;   ii1 = 160   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.25 
    437          ij0 =  90   ;   ij1 =  90 
    438          ii0 = 160   ;   ii1 = 160   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.25 
    439          !                                          ! Sound Strait 
    440          ij0 = 116   ;   ij1 = 116 
    441          ii0 = 144   ;   ii1 = 144   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.25 
    442          ii0 = 145   ;   ii1 = 147   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.50 
    443          ii0 = 148   ;   ii1 = 148   ;   upsmsk( mi0(ii0):mi1(ii1) , mj0(ij0):mj1(ij1) ) = 0.25 
    444          ! 
    445       END SELECT  
    446        
    447       ! mixed upstream/centered scheme over closed seas 
    448       ! ----------------------------------------------- 
    449       CALL clo_ups( upsmsk(:,:) ) 
    450       ! 
    451    END SUBROUTINE ups_orca_set 
    452389 
    453390   !!====================================================================== 
  • trunk/NEMO/OPA_SRC/TRA/traadv_cen2_jki.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r717 r719  
    44   !! Ocean active tracers:  horizontal & vertical advective trend 
    55   !!============================================================================== 
    6    !! History :   8.2  !  01-08  (G. Madec, E. Durand)  trahad+trazad = traadv 
    7    !!             8.5  !  02-06  (G. Madec)  F90: Free form and module 
    8    !!             9.0  !  04-08  (C. Talandier) New trends organization 
    9    !!             " "  !  05-11  (V. Garnier) Surface pressure gradient organization 
    10    !!             " "  !  06-04  (R. Benshila, G. Madec) Step reorganization 
    11    !!             " "  !  06-07  (G. madec)  add ups_orca_set routine 
     6   !! History :  8.2  !  01-08  (G. Madec, E. Durand)  trahad+trazad = traadv 
     7   !!            8.5  !  02-06  (G. Madec)  F90: Free form and module 
     8   !!            9.0  !  05-11  (V. Garnier) Surface pressure gradient organization 
     9   !!            " "  !  06-04  (R. Benshila, G. Madec) Step reorganization 
    1210   !!---------------------------------------------------------------------- 
    1311 
    1412   !!---------------------------------------------------------------------- 
    1513   !!   tra_adv_cen2_jki : update the tracer trend with the horizontal and 
    16    !!                      vertical advection trends using a seconder order 
    17    !!                      centered scheme. Auto-tasking case, k-slab for 
    18    !!                      hor. adv., j-slab for vert. adv. (j-k-i loops) 
     14   !!                  vertical advection trends using a seconder order 
     15   !!                  centered scheme. Auto-tasking case, k-slab for 
     16   !!                  hor. adv., j-slab for vert. adv. (j-k-i loops) 
    1917   !!---------------------------------------------------------------------- 
    2018   USE oce             ! ocean dynamics and active tracers 
    2119   USE dom_oce         ! ocean space and time domain 
    22    USE dynspg_oce      ! choice/control of key cpp for surface pressure gradient 
     20   USE trdmod          ! ocean active tracers trends 
    2321   USE trdmod_oce      ! ocean variables trends 
    24    USE sbc_oce         ! surface boundary condition: ocean 
    25    USE trdmod          ! ocean active tracers trends 
     22   USE flxrnf          ! 
    2623   USE trabbl          ! advective term in the BBL 
    2724   USE ocfzpt          ! 
    2825   USE lib_mpp 
    2926   USE lbclnk          ! ocean lateral boundary condition (or mpp link) 
    30    USE sbcrnf          ! river runoffs 
    3127   USE in_out_manager  ! I/O manager 
    3228   USE diaptr          ! poleward transport diagnostics 
     29   USE dynspg_oce      ! choice/control of key cpp for surface pressure gradient 
    3330   USE prtctl          ! Print control 
    34     
     31 
    3532   IMPLICIT NONE 
    3633   PRIVATE 
    3734 
    38    PUBLIC   tra_adv_cen2_jki    ! routine called by step.F90 
    39  
    40    REAL(wp), DIMENSION(jpi,jpj) ::   btr2    ! inverse of T-point surface [1/(e1t*e2t)] 
     35   PUBLIC   tra_adv_cen2_jki   ! routine called by step.F90 
     36 
     37   REAL(wp), DIMENSION(jpi,jpj) ::   btr2   ! inverse of T-point surface [1/(e1t*e2t)] 
    4138 
    4239   !! * Substitutions 
     
    4542   !!---------------------------------------------------------------------- 
    4643   !!   OPA 9.0 , LOCEAN-IPSL (2005) 
    47    !! $Id$ 
     44   !! $Header$  
    4845   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4946   !!---------------------------------------------------------------------- 
     
    9087      !!         zta+tn*divn=1/(e1t*e2t*e3t) { mi-1( e2u*e3u  un  di[tn] ) 
    9188      !!                                      +mj-1( e1v*e3v  vn  mj[tn] )  } 
    92       !!         C A U T I O N : the trend saved is the centered trend only. 
    93       !!      It does not take into account the upstream part of the scheme. 
    9489      !!         NB:in z-coordinate - full step (ln_zco=T) e3u=e3v=e3t, so  
    9590      !!      they vanish from the expression of the flux and divergence. 
     
    114109      !! 
    115110      !! ** Action :  - update (ta,sa) with the now advective tracer trends 
     111      !!              - save trends in (ztrdt,ztrds) ('key_trdtra') 
    116112      !!---------------------------------------------------------------------- 
    117       USE oce               ,   zwx => ua          ! use ua as workspace 
    118       USE oce               ,   zwy => va          ! use va as workspace 
    119       USE traadv_cen2, ONLY :   ups_orca_set,   &  ! upstream indicator near some straits  
    120          &                      upsmsk             ! and over closed sea (orca 2 and 4) 
    121  
    122       INTEGER , INTENT(in)                         ::   kt              ! ocean time-step index 
    123       REAL(wp), INTENT(in), DIMENSION(jpi,jpj,jpk) ::   pun, pvn, pwn   ! now ocean velocity fields 
    124  
     113      USE oce, ONLY :   zwx => ua   ! use ua as workspace 
     114      USE oce, ONLY :   zwy => va   ! use va as workspace 
     115      !! 
     116      INTEGER , INTENT(in)                         ::   kt    ! ocean time-step index 
     117      REAL(wp), INTENT(in), DIMENSION(jpi,jpj,jpk) ::   pun   ! ocean velocity u-component 
     118      REAL(wp), INTENT(in), DIMENSION(jpi,jpj,jpk) ::   pvn   ! ocean velocity v-component 
     119      REAL(wp), INTENT(in), DIMENSION(jpi,jpj,jpk) ::   pwn   ! ocean velocity w-component 
     120      !! 
    125121      INTEGER  ::   ji, jj, jk                           ! dummy loop indices 
    126       REAL(wp) ::   zta, zsa, zbtr, zhw, ze3tr,       &  ! temporary scalars 
    127          &          zfp_ui, zfp_vj, zfp_w , zfui  ,   &  !    "         " 
    128          &          zfm_ui, zfm_vj, zfm_w , zfvj  ,   &  !    "         " 
    129          &          zcofi , zcofj , zcofk ,           &  !    "         " 
    130          &          zupsut, zupsus, zcenut, zcenus,   &  !    "         " 
    131          &          zupsvt, zupsvs, zcenvt, zcenvs,   &  !    "         " 
    132          &          zupst , zupss , zcent , zcens ,   &  !    "         " 
    133          &          z_hdivn_x, z_hdivn_y, z_hdivn  
    134       REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zwz, ztrdt, zind,   &  ! temporary workspace arrays 
    135          &                                  zww, ztrds             !    "         " 
     122      REAL(wp) ::                           & 
     123         zbtr, zta, zsa, zfui, zfvj,        &  ! temporary scalars 
     124         zhw, ze3tr, zcofi, zcofj,          &  !    "         " 
     125         zupsut, zupsvt, zupsus, zupsvs,    &  !    "         " 
     126         zfp_ui, zfp_vj, zfm_ui, zfm_vj,    &  !    "         " 
     127         zcofk, zupst, zupss, zcent,        &  !    "         " 
     128         zcens, zfp_w, zfm_w,               &  !    "         " 
     129         zcenut, zcenvt, zcenus, zcenvs,    &  !    "         " 
     130         z_hdivn_x, z_hdivn_y, z_hdivn 
     131      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zwz, ztrdt, zind   ! 3D workspace  
     132      REAL(wp), DIMENSION(jpi,jpj,jpk) ::   zww, ztrds         !  "      " 
    136133      !!---------------------------------------------------------------------- 
    137       ! 
     134 
    138135      IF( kt == nit000 ) THEN 
    139136         IF(lwp) WRITE(numout,*) 
     
    141138         IF(lwp) WRITE(numout,*) '~~~~~~~~~~~~~   Auto-tasking case' 
    142139         IF(lwp) WRITE(numout,*) 
    143          !          
    144          upsmsk(:,:) = 0.e0                              ! not upstream by default 
    145          IF( cp_cfg == "orca" )   CALL ups_orca_set      ! set mixed Upstream/centered scheme near some straits 
    146          !                                               ! and in closed seas (orca2 and orca4 only) 
    147  
    148          btr2(:,:) = 1. / ( e1t(:,:) * e2t(:,:) )        ! inverse of T-point surface 
     140         ! 
     141         btr2(:,:) = 1. / ( e1t(:,:) * e2t(:,:) ) 
    149142      ENDIF 
    150143 
     
    154147      DO jk = 1, jpkm1                                 ! Horizontal slab 
    155148         !                                             ! =============== 
    156  
    157          ! 0. Upstream / centered scheme indicator 
    158          ! --------------------------------------- 
     149         !  Upstream / centered scheme indicator 
     150         ! -------------------------------------- 
    159151         DO jj = 1, jpj 
    160152            DO ji = 1, jpi 
    161                zind(ji,jj,jk) = MAX (   & 
    162                   rnfmsk(ji,jj) * rnfmsk_z(jk),      &  ! near runoff mouths (& closed sea outflows) 
    163                   upsmsk(ji,jj)                      &  ! some of some straits 
     153               zind(ji,jj,jk) =  MAX (              & 
     154                  upsrnfh(ji,jj) * upsrnfz(jk),     &  ! changing advection scheme near runoff 
     155                  upsadv(ji,jj)                     &  ! in the vicinity of some straits 
    164156#if defined key_ice_lim 
    165                   !                                     ! below ice covered area (if tn < "freezing"+0.1 ) 
    166                   , MAX(  0., SIGN( 1., fzptn(ji,jj) + 0.1 - tn(ji,jj,jk) )  ) * tmask(ji,jj,jk)   & 
    167 #endif 
    168                   &                  ) 
    169             END DO 
    170          END DO 
    171  
    172  
    173          ! I. Horizontal advective fluxes 
    174          ! ------------------------------ 
     157                  , tmask(ji,jj,jk)                 &  ! half upstream tracer fluxes if tn < ("freezing"+0.1 ) 
     158                  * MAX( 0., SIGN( 1., fzptn(ji,jj)+0.1-tn(ji,jj,jk) ) )   & 
     159#endif 
     160               ) 
     161            END DO 
     162         END DO 
     163 
     164         !  Horizontal advective fluxes 
     165         ! ----------------------------- 
    175166         ! Second order centered tracer flux at u and v-points 
    176167         DO jj = 1, jpjm1 
    177168            DO ji = 1, fs_jpim1   ! vector opt. 
    178                zcofi = MAX( zind(ji+1,jj,jk), zind(ji,jj,jk) )               ! upstream indicator 
     169               ! upstream indicator 
     170               zcofi = MAX( zind(ji+1,jj,jk), zind(ji,jj,jk) ) 
    179171               zcofj = MAX( zind(ji,jj+1,jk), zind(ji,jj,jk) ) 
    180 #if defined key_zco 
    181                zfui = 0.5 * e2u(ji,jj) * pun(ji,jj,jk)                       ! volume fluxes * 1/2 (zco) 
     172               ! volume fluxes * 1/2 
     173#if defined key_zco 
     174               zfui = 0.5 * e2u(ji,jj) * pun(ji,jj,jk) 
    182175               zfvj = 0.5 * e1v(ji,jj) * pvn(ji,jj,jk) 
    183176#else 
    184                zfui = 0.5 * e2u(ji,jj) * fse3u(ji,jj,jk) * pun(ji,jj,jk)     ! volume fluxes * 1/2 
     177               zfui = 0.5 * e2u(ji,jj) * fse3u(ji,jj,jk) * pun(ji,jj,jk) 
    185178               zfvj = 0.5 * e1v(ji,jj) * fse3v(ji,jj,jk) * pvn(ji,jj,jk) 
    186179#endif 
    187                zfp_ui = zfui + ABS( zfui )                                   ! upstream scheme 
     180               ! upstream scheme 
     181               zfp_ui = zfui + ABS( zfui ) 
    188182               zfp_vj = zfvj + ABS( zfvj ) 
    189183               zfm_ui = zfui - ABS( zfui ) 
     
    193187               zupsus = zfp_ui * sb(ji,jj,jk) + zfm_ui * sb(ji+1,jj  ,jk) 
    194188               zupsvs = zfp_vj * sb(ji,jj,jk) + zfm_vj * sb(ji  ,jj+1,jk) 
    195                zcenut = zfui * ( tn(ji,jj,jk) + tn(ji+1,jj  ,jk) )           ! centered scheme 
     189               ! centered scheme 
     190               zcenut = zfui * ( tn(ji,jj,jk) + tn(ji+1,jj  ,jk) ) 
    196191               zcenvt = zfvj * ( tn(ji,jj,jk) + tn(ji  ,jj+1,jk) ) 
    197192               zcenus = zfui * ( sn(ji,jj,jk) + sn(ji+1,jj  ,jk) ) 
    198193               zcenvs = zfvj * ( sn(ji,jj,jk) + sn(ji  ,jj+1,jk) ) 
    199                zwx(ji,jj,jk) = zcofi * zupsut + (1.-zcofi) * zcenut          ! mixed centered / upstream scheme 
     194               ! mixed centered / upstream scheme 
     195               zwx(ji,jj,jk) = zcofi * zupsut + (1.-zcofi) * zcenut 
    200196               zwy(ji,jj,jk) = zcofj * zupsvt + (1.-zcofj) * zcenvt 
    201197               zww(ji,jj,jk) = zcofi * zupsus + (1.-zcofi) * zcenus 
     
    204200         END DO 
    205201 
    206          ! 2. Tracer flux divergence at t-point added to the general trend 
    207          ! --------------------------------------------------------------- 
    208  
     202         ! Tracer flux divergence at t-point added to the general trend 
    209203         DO jj = 2, jpjm1 
    210204            DO ji = fs_2, fs_jpim1   ! vector opt. 
    211205#if defined key_zco 
    212                zbtr = btr2(ji,jj)                                           ! inverse of the volume (zco) 
    213 #else 
    214                zbtr = btr2(ji,jj) / fse3t(ji,jj,jk)                         ! inverse of the volume 
    215 #endif 
    216                zta = - zbtr * (  zwx(ji,jj,jk) - zwx(ji-1,jj  ,jk)   &      ! horizontal advective trends 
     206               zbtr = btr2(ji,jj)  
     207#else 
     208               zbtr = btr2(ji,jj) / fse3t(ji,jj,jk) 
     209#endif 
     210               ! horizontal advective trends 
     211               zta = - zbtr * (  zwx(ji,jj,jk) - zwx(ji-1,jj  ,jk)   & 
    217212                  &            + zwy(ji,jj,jk) - zwy(ji  ,jj-1,jk)  ) 
    218213               zsa = - zbtr * (  zww(ji,jj,jk) - zww(ji-1,jj  ,jk)   & 
    219214                  &            + zwz(ji,jj,jk) - zwz(ji  ,jj-1,jk)  ) 
    220                ta(ji,jj,jk) = ta(ji,jj,jk) + zta                            ! add it to the general tracer trends 
     215               ! add it to the general tracer trends 
     216               ta(ji,jj,jk) = ta(ji,jj,jk) + zta 
    221217               sa(ji,jj,jk) = sa(ji,jj,jk) + zsa 
    222218            END DO 
     
    229225         &                       tab3d_2=sa, clinfo2=            ' Sa: ', mask2=tmask, clinfo3='tra' ) 
    230226 
    231       ! 3. Save the horizontal advective trends for diagnostic 
     227      ! Save the horizontal advective trends for diagnostics 
    232228      IF( l_trdtra )   THEN 
    233229         ztrdt(:,:,:) = 0.e0   ;   ztrds(:,:,:) = 0.e0 
     
    302298      ENDIF 
    303299 
    304       ! II. Vertical advection 
    305       ! ---------------------- 
     300      ! Vertical advection 
     301      ! -------------------- 
    306302!CDIR PARALLEL DO 
    307303!$OMP PARALLEL DO 
     
    316312         IF( lk_dynspg_rl ) THEN                          ! rigid lid : flux set to zero 
    317313            zwz(:,jj, 1 ) = 0.e0    ;    zww(:,jj, 1 ) = 0.e0 
    318          ELSE                                             ! free surface-constant volume : advection across the surface 
     314         ELSE                                             ! free surface-constant volume 
    319315            zwz(:,jj, 1 ) = pwn(:,jj,1) * tn(:,jj,1) 
    320316            zww(:,jj, 1 ) = pwn(:,jj,1) * sn(:,jj,1) 
    321317         ENDIF 
    322318          
    323          ! 1. Vertical advective fluxes (Second order centered tracer flux at w-point) 
    324          ! ---------------------------- 
     319         ! Vertical advective fluxes at w-point 
    325320         DO jk = 2, jpk 
    326321            DO ji = 2, jpim1 
    327                zcofk = MAX( zind(ji,jj,jk-1), zind(ji,jj,jk) )          ! upstream indicator 
    328                zhw = 0.5 * pwn(ji,jj,jk)                                ! velocity * 1/2 
    329                zfp_w = zhw + ABS( zhw )                                 ! upstream scheme 
     322               ! upstream indicator 
     323               zcofk = MAX( zind(ji,jj,jk-1), zind(ji,jj,jk) ) 
     324               ! velocity * 1/2 
     325               zhw = 0.5 * pwn(ji,jj,jk) 
     326               ! upstream scheme 
     327               zfp_w = zhw + ABS( zhw ) 
    330328               zfm_w = zhw - ABS( zhw ) 
    331329               zupst = zfp_w * tb(ji,jj,jk) + zfm_w * tb(ji,jj,jk-1) 
    332330               zupss = zfp_w * sb(ji,jj,jk) + zfm_w * sb(ji,jj,jk-1) 
    333                zcent = zhw * ( tn(ji,jj,jk) + tn(ji,jj,jk-1) )          ! centered scheme 
     331               ! centered scheme 
     332               zcent = zhw * ( tn(ji,jj,jk) + tn(ji,jj,jk-1) ) 
    334333               zcens = zhw * ( sn(ji,jj,jk) + sn(ji,jj,jk-1) ) 
    335                zwz(ji,jj,jk) = zcofk * zupst + (1.-zcofk) * zcent       ! mixed centered / upstream scheme 
     334               ! mixed centered / upstream scheme 
     335               zwz(ji,jj,jk) = zcofk * zupst + (1.-zcofk) * zcent 
    336336               zww(ji,jj,jk) = zcofk * zupss + (1.-zcofk) * zcens 
    337337            END DO 
    338338         END DO 
    339339 
    340          ! 2. Tracer flux divergence at t-point added to the general trend 
    341          ! ------------------------- 
     340         ! Tracer flux divergence at t-point added to the general trend 
    342341         DO jk = 1, jpkm1 
    343342            DO ji = 2, jpim1 
    344343               ze3tr = 1. / fse3t(ji,jj,jk) 
    345                zta = - ze3tr * ( zwz(ji,jj,jk) - zwz(ji,jj,jk+1) )      ! vertical advective trends 
     344               ! vertical advective trends 
     345               zta = - ze3tr * ( zwz(ji,jj,jk) - zwz(ji,jj,jk+1) ) 
    346346               zsa = - ze3tr * ( zww(ji,jj,jk) - zww(ji,jj,jk+1) ) 
    347                ta(ji,jj,jk) =  ta(ji,jj,jk) + zta                       ! add it to the general tracer trends 
     347               ! add it to the general tracer trends 
     348               ta(ji,jj,jk) =  ta(ji,jj,jk) + zta 
    348349               sa(ji,jj,jk) =  sa(ji,jj,jk) + zsa 
    349350            END DO 
     
    353354      !                                                ! =============== 
    354355 
    355       ! 3. Save the vertical advective trends for diagnostic 
    356       ! ---------------------------------------------------- 
     356      ! Save the vertical advective trends for diagnostic 
    357357      IF( l_trdtra )   THEN 
    358358         ! Recompute the vertical advection zta & zsa trends computed  
  • trunk/NEMO/OPA_SRC/TRA/traadv_eiv.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3333   !!---------------------------------------------------------------------- 
    3434   !!  OPA 9.0 , LOCEAN-IPSL (2006)  
    35    !! $Id$ 
     35   !! $Header$  
    3636   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    3737   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traadv_muscl.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3535   !!---------------------------------------------------------------------- 
    3636   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    37    !! $Id$ 
     37   !! $Header$  
    3838   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    3939   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traadv_muscl2.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3434   !!---------------------------------------------------------------------- 
    3535   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    36    !! $Id$ 
     36   !! $Header$  
    3737   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    3838   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traadv_qck.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r708 r719  
    1414   USE oce             ! ocean dynamics and active tracers 
    1515   USE dom_oce         ! ocean space and time domain 
    16    USE dynspg_oce      !  
     16   USE trdmod          ! ocean active tracers trends  
    1717   USE trdmod_oce      ! ocean variables trends 
    18    USE trdmod          ! ocean active tracers trends  
     18   USE flxrnf          ! 
    1919   USE trabbl          ! advective term in the BBL 
     20   USE ocfzpt          ! 
    2021   USE lib_mpp 
    2122   USE lbclnk          ! ocean lateral boundary condition (or mpp link) 
    2223   USE in_out_manager  ! I/O manager 
    2324   USE diaptr          ! poleward transport diagnostics 
     25   USE dynspg_oce      !  
    2426   USE prtctl          ! Print control 
    2527 
     
    4547   !!---------------------------------------------------------------------- 
    4648   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    47    !! $Id$ 
     49   !! $Header$  
    4850   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    4951   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traadv_tvd.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4545   !!---------------------------------------------------------------------- 
    4646   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    47    !! $Id$ 
     47   !! $Header$ 
    4848   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4949   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traadv_ubs.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3434   !!---------------------------------------------------------------------- 
    3535   !!   OPA 9.0 , LOCEAN-IPSL (2006)   
    36    !! $Id$ 
     36   !! $Header$ 
    3737   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt)  
    3838   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/trabbc.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4343   !!---------------------------------------------------------------------- 
    4444   !!  OPA 9.0 , LOCEAN-IPSL (2006)  
    45    !! $Id$ 
     45   !! $Header$  
    4646   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4747   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/trabbl.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    6060   !!---------------------------------------------------------------------- 
    6161   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    62    !! $Id$ 
     62   !! $Header$  
    6363   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    6464   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/trabbl_adv.h90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    88   !!---------------------------------------------------------------------- 
    99   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    10    !! $Id$ 
     10   !! $Header$  
    1111   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    1212   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/tradmp.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    6363   !!---------------------------------------------------------------------- 
    6464   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    65    !! $Id$ 
     65   !! $Header$  
    6666   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    6767   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traldf.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4444   !!---------------------------------------------------------------------- 
    4545   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    46    !! $Id$ 
     46   !! $Header$  
    4747   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4848   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traldf_bilap.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3434   !!---------------------------------------------------------------------- 
    3535   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    36    !! $Id$ 
     36   !! $Header$  
    3737   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    3838   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traldf_bilapg.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3636   !!---------------------------------------------------------------------- 
    3737   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    38    !! $Id$ 
     38   !! $Header$  
    3939   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    4040   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traldf_iso.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4242   !!---------------------------------------------------------------------- 
    4343   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    44    !! $Id$ 
     44   !! $Header$  
    4545   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4646   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traldf_lap.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3232   !!---------------------------------------------------------------------- 
    3333   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    34    !! $Id$ 
     34   !! $Header$  
    3535   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    3636   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/tranpc.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3838   !!---------------------------------------------------------------------- 
    3939   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    40    !! $Id$ 
     40   !! $Header$  
    4141   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4242   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/tranxt.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r708 r719  
    2121   USE dom_oce         ! ocean space and time domain variables  
    2222   USE zdf_oce         ! ??? 
    23    USE dynspg_oce      ! surface pressure gradient variables 
    24    USE trdmod_oce      ! ocean variables trends 
    25    USE trdmod          ! ocean active tracers trends  
    26    USE phycst 
    27    USE domvvl          ! variable volume 
    28    USE obctra          ! open boundary condition (obc_tra routine) 
    2923   USE in_out_manager  ! I/O manager 
    3024   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
     25   USE obctra          ! open boundary condition (obc_tra routine) 
     26   USE trdmod          ! ocean active tracers trends  
     27   USE trdmod_oce      ! ocean variables trends 
    3128   USE prtctl          ! Print control 
    3229   USE agrif_opa_update 
    3330   USE agrif_opa_interp 
    3431 
     32   USE ocesbc          ! ocean surface boundary condition 
     33   USE domvvl          ! variable volume 
     34   USE dynspg_oce      ! surface pressure gradient variables 
     35   USE phycst 
    3536 
    3637   IMPLICIT NONE 
     
    4647   !!---------------------------------------------------------------------- 
    4748   !!   OPA 9.0 , LOCEAN-IPSL (2006)  
    48    !! $Id$ 
     49   !! $Header$  
    4950   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    5051   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/traqsr.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r708 r719  
    1717   USE oce             ! ocean dynamics and active tracers 
    1818   USE dom_oce         ! ocean space and time domain 
    19    USE sbc_oce         ! surface boundary condition: ocean 
     19   USE trdmod          ! ocean active tracers trends  
     20   USE trdmod_oce      ! ocean variables trends 
     21   USE in_out_manager  ! I/O manager 
    2022   USE trc_oce         ! share SMS/Ocean variables 
    21    USE trdmod_oce      ! ocean variables trends 
    22    USE trdmod          ! ocean active tracers trends  
    23    USE in_out_manager  ! I/O manager 
     23   USE ocesbc          ! thermohaline fluxes 
    2424   USE phycst          ! physical constants 
    2525   USE prtctl          ! Print control 
     
    4646   !!---------------------------------------------------------------------- 
    4747   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    48    !! $Id$ 
     48   !! $Header$  
    4949   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    5050   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/trasbc.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r714 r719  
    1313   !!---------------------------------------------------------------------- 
    1414   USE oce             ! ocean dynamics and active tracers 
    15    USE sbc_oce         ! surface boundary condition: ocean 
    1615   USE dom_oce         ! ocean space domain variables 
     16   USE ocesbc          ! surface thermohaline fluxes 
    1717   USE phycst          ! physical constant 
    1818   USE traqsr          ! solar radiation penetration 
     
    3232   !!---------------------------------------------------------------------- 
    3333   !!   OPA 9.0 , LOCEAN-IPSL (2005)  
    34    !! $Id$ 
     34   !! $Header$  
    3535   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    3636   !!---------------------------------------------------------------------- 
     
    132132#endif 
    133133            IF( lk_vvl) THEN 
    134                zta = ro0cpr * qns(ji,jj) * zse3t &                   ! temperature : heat flux 
     134               zta = ro0cpr * ( qt(ji,jj) - qsr(ji,jj) ) * zse3t &   ! temperature : heat flux 
    135135                &    - emp(ji,jj) * zsrau * tn(ji,jj,1)  * zse3t     ! & cooling/heating effet of EMP flux 
    136136               zsa = 0.e0                                            ! No salinity concent./dilut. effect 
    137137            ELSE 
    138                zta = ro0cpr * qns(ji,jj) * zse3t     ! temperature : heat flux 
     138               zta = ro0cpr * ( qt(ji,jj) - qsr(ji,jj) ) * zse3t     ! temperature : heat flux 
    139139               zsa = emps(ji,jj) * zsrau * sn(ji,jj,1)   * zse3t     ! salinity :  concent./dilut. effect 
    140140            ENDIF 
  • trunk/NEMO/OPA_SRC/TRA/trazdf.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r708 r719  
    1414   USE dom_oce         ! ocean space and time domain variables  
    1515   USE zdf_oce         ! ocean vertical physics variables 
    16    USE sbc_oce         ! surface boundary condition: ocean 
    17    USE dynspg_oce 
    1816 
    1917   USE trazdf_exp      ! vertical diffusion: explicit (tra_zdf_exp     routine) 
     
    2826 
    2927   USE phycst 
     28   USE dynspg_oce 
     29   USE ocesbc          ! ocean surface boundary condition 
    3030   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    3131   USE domvvl          ! variable volume 
     
    4848   !!---------------------------------------------------------------------- 
    4949   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    50    !! $Id$ 
     50   !! $Header$  
    5151   !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    5252   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/trazdf_exp.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4141   !!---------------------------------------------------------------------- 
    4242   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    43    !! $Id$ 
     43   !! $Header$  
    4444   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt 
    4545   !!---------------------------------------------------------------------- 
  • trunk/NEMO/OPA_SRC/TRA/trazdf_imp.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4545#  include "vectopt_loop_substitute.h90" 
    4646   !!---------------------------------------------------------------------- 
     47   !!---------------------------------------------------------------------- 
    4748   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    48    !! $Id$ 
    49    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    50    !!---------------------------------------------------------------------- 
    51  
     49   !!---------------------------------------------------------------------- 
    5250CONTAINS 
    5351    
  • trunk/NEMO/OPA_SRC/TRA/trazdf_imp_jki.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    4444   !!---------------------------------------------------------------------- 
    4545   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    46    !! $Id$ 
    47    !! Software governed by the CeCILL licence (modipsl/doc/NEMO_CeCILL.txt) 
    4846   !!---------------------------------------------------------------------- 
    4947 
  • trunk/NEMO/OPA_SRC/TRA/zpshde.F90

    • Property svn:keywords changed from Id to Author Date Id Revision
    r699 r719  
    3333   !!---------------------------------------------------------------------- 
    3434   !!  OPA 9.0 , LOCEAN-IPSL (2005)  
    35    !! $Id$ 
     35   !! $Header$  
    3636   !! This software is governed by the CeCILL licence see modipsl/doc/NEMO_CeCILL.txt  
    3737   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.