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 2038 for branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/oce_trc.F90 – NEMO

Ignore:
Timestamp:
2010-08-02T12:57:40+02:00 (14 years ago)
Author:
cetlod
Message:

Apply the merge to passive tracers, see ticket:693

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/oce_trc.F90

    r1753 r2038  
    3232   USE par_oce , ONLY :   jpkdta   =>   jpkdta     !: number of levels            > or = jpk 
    3333   USE par_oce , ONLY :   lk_esopa =>   lk_esopa   !: flag to activate the all option 
     34   USE par_oce , ONLY :   jp_tem   =>   jp_tem     !: indice for temperature 
     35   USE par_oce , ONLY :   jp_sal   =>   jp_sal     !: indice for salinity 
    3436 
    3537   !* IO manager * 
     
    112114   USE dom_oce , ONLY :   ln_zco     =>  ln_zco      !: z-coordinate flag 
    113115   USE dom_oce , ONLY :   lk_zco     =>  lk_zco      !: z-coordinate flag (1D or 3D arrays) 
    114    USE dom_oce , ONLY :   hbatt      =>   hbatt      !: ocean depth at the vertical of  t-point (m) 
    115    USE dom_oce , ONLY :   hbatu      =>   hbatu      !: ocean depth at the vertical of  u-point (m) 
    116    USE dom_oce , ONLY :   hbatv      =>   hbatv      !: ocean depth at the vertical of w-point (m) 
    117    USE dom_oce , ONLY :   gsigt      =>   gsigt      !: model level depth coefficient at T-levels 
    118    USE dom_oce , ONLY :   gsigw      =>   gsigw      !: model level depth coefficient at W-levels 
    119    USE dom_oce , ONLY :   gsi3w      =>   gsi3w      !: model level depth coef at w-levels (defined as the sum of e3w) 
    120    USE dom_oce , ONLY :   esigt      =>   esigt      !: vertical scale factor coef. at t-levels 
    121    USE dom_oce , ONLY :   esigw      =>   esigw      !: vertical scale factor coef. at w-levels 
    122    USE dom_oce , ONLY :   lk_vvl     => lk_vvl       !: variable grid flag 
     116   USE dom_oce , ONLY :   hbatt      =>  hbatt      !: ocean depth at the vertical of  t-point (m) 
     117   USE dom_oce , ONLY :   hbatu      =>  hbatu      !: ocean depth at the vertical of  u-point (m) 
     118   USE dom_oce , ONLY :   hbatv      =>  hbatv      !: ocean depth at the vertical of w-point (m) 
     119   USE dom_oce , ONLY :   gsigt      =>  gsigt      !: model level depth coefficient at T-levels 
     120   USE dom_oce , ONLY :   gsigw      =>  gsigw      !: model level depth coefficient at W-levels 
     121   USE dom_oce , ONLY :   gsi3w      =>  gsi3w      !: model level depth coef at w-levels (defined as the sum of e3w) 
     122   USE dom_oce , ONLY :   esigt      =>  esigt      !: vertical scale factor coef. at t-levels 
     123   USE dom_oce , ONLY :   esigw      =>  esigw      !: vertical scale factor coef. at w-levels 
     124   USE dom_oce , ONLY :   lk_vvl     =>  lk_vvl       !: variable grid flag 
    123125 
    124126   !* masks, bathymetry * 
     
    129131   USE dom_oce , ONLY :   vmask      =>   vmask      !: land/ocean mask at v-points  
    130132   USE dom_oce , ONLY :   fmask      =>   fmask      !: land/ocean mask at f-points  
    131 # if defined key_off_degrad 
     133# if defined key_degrad 
    132134   USE dom_oce , ONLY :   facvol     =>   facvol     !: volume factor for degradation 
    133135# endif 
     
    166168   USE oce , ONLY :   tn      =>    tn      !: pot. temperature (celsius) 
    167169   USE oce , ONLY :   sn      =>    sn      !: salinity (psu) 
     170   USE oce , ONLY :   tsn     =>    tsn     !: 4D array contaning ( tn, sn ) 
     171   USE oce , ONLY :   tsb     =>    tsb     !: 4D array contaning ( tb, sb ) 
     172   USE oce , ONLY :   tsa     =>    tsa     !: 4D array contaning ( ta, sa ) 
    168173   USE oce , ONLY :   rhop    =>    rhop    !: potential volumic mass (kg m-3)  
    169174   USE oce , ONLY :   rhd     =>    rhd     !: in situ density anomalie rhd=(rho-rau0)/rau0 (no units) 
    170175   USE oce , ONLY :   hdivn   =>    hdivn   !: horizontal divergence (1/s) 
    171 #if defined key_off_tra 
     176   USE oce , ONLY :   l_traldf_rot => l_traldf_rot  !: rotated laplacian operator for lateral diffusion 
     177#if defined key_offline 
    172178   USE oce , ONLY :   gtu     =>    gtu     !: t-, s- and rd horizontal gradient at u- and 
    173179   USE oce , ONLY :   gsu     =>    gsu     !: v-points at bottom ocean level 
     
    196202   USE sbcrnf  , ONLY :   rnfmsk_z   =>    rnfmsk_z   !: mixed adv scheme in runoffs vicinity (vert.) 
    197203 
    198    !* bottom boundary layer * 
    199 # if   defined key_trabbl_dif   ||   defined key_trabbl_adv 
    200 # if ! defined key_off_tra  
    201    USE trabbl , ONLY :   atrbbl   =>   rn_ahtbbl     !: lateral coeff. for bottom boundary layer scheme (m2/s) 
    202 # else  
    203    USE trabbl, ONLY :   bblx   => bblx         !: ??? 
    204    USE trabbl, ONLY :   bbly   => bbly         !: ??? 
    205 #  endif 
    206 # endif 
     204   USE trc_oce 
    207205 
    208206   !* lateral diffusivity (tracers) * 
Note: See TracChangeset for help on using the changeset viewer.