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 519 for trunk/NEMO/OPA_SRC/DIA/diaptr.F90 – NEMO

Ignore:
Timestamp:
2006-10-11T15:49:05+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_74 : CT : - add comments for the UBS scheme

  • syntax correction
  • remove the use of eddy velocity in the calculation of poleward transport since it is already included into the normal velocity
  • remove the save of the trend associated to the BBL advective velocity since it is already included into the normal velocity
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/DIA/diaptr.F90

    r508 r519  
    241241         v_atl , v_ipc,                    & 
    242242         vt_atl, vt_pac, vt_ind,           & 
    243          vs_atl, vs_pac, vs_ind,           & 
    244          zv_eiv 
     243         vs_atl, vs_pac, vs_ind              
    245244      INTEGER ::  inum       ! temporary logical unit 
    246245      !!---------------------------------------------------------------------- 
     
    252251         zggram    = 1.e-6 
    253252    
    254 # if defined key_diaeiv 
    255          zv_eiv(:,:,:) = v_eiv(:,:,:) 
    256 # else 
    257          zv_eiv(:,:,:) = 0.e0 
    258 # endif 
    259  
    260253         ! "zonal" mean temperature and salinity at V-points 
    261254         tn_jk(:,:) = ptr_vtjk( tn(:,:,:) ) * surf_jk_r(:,:) 
     
    279272               DO ji = 1, jpi 
    280273                  ! basin separated velocity 
    281                   v_atl(ji,jj,:) = (vn(ji,jj,:)+zv_eiv(ji,jj,:))*abasin(ji,jj) 
    282                   v_ipc(ji,jj,:) = (vn(ji,jj,:)+zv_eiv(ji,jj,:))*(pbasin(ji,jj)+ibasin(ji,jj)) 
     274                  v_atl(ji,jj,:) = vn(ji,jj,:)*abasin(ji,jj) 
     275                  v_ipc(ji,jj,:) = vn(ji,jj,:)*(pbasin(ji,jj)+ibasin(ji,jj)) 
    283276 
    284277                  ! basin separated T times V on T points 
    285                   vt_ind(ji,jj,:) = tn(ji,jj,:) *                                 & 
    286                      &              ( (vn    (ji,jj,:) + vn    (ji,jj-1,:))*0.5   & 
    287                      &              + (zv_eiv(ji,jj,:) + zv_eiv(ji,jj-1,:))*0.5 )  
     278                  vt_ind(ji,jj,:) = tn(ji,jj,:) * ( vn(ji,jj,:) + vn(ji,jj-1,:) )*0.5 
    288279                  vt_atl(ji,jj,:) = vt_ind(ji,jj,:) * abasin(ji,jj) 
    289280                  vt_pac(ji,jj,:) = vt_ind(ji,jj,:) * pbasin(ji,jj) 
     
    291282 
    292283                  ! basin separated S times V on T points 
    293                   vs_ind(ji,jj,:) = sn(ji,jj,:) *                                 & 
    294                      &              ( (vn    (ji,jj,:) + vn    (ji,jj-1,:))*0.5   & 
    295                      &              + (zv_eiv(ji,jj,:) + zv_eiv(ji,jj-1,:))*0.5 )  
     284                  vs_ind(ji,jj,:) = sn(ji,jj,:) * ( vn(ji,jj,:) + vn(ji,jj-1,:) )*0.5 
    296285                  vs_atl(ji,jj,:) = vs_ind(ji,jj,:) * abasin(ji,jj) 
    297286                  vs_pac(ji,jj,:) = vs_ind(ji,jj,:) * pbasin(ji,jj) 
Note: See TracChangeset for help on using the changeset viewer.