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 5883 for branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_qck.F90 – NEMO

Ignore:
Timestamp:
2015-11-13T08:01:08+01:00 (8 years ago)
Author:
gm
Message:

#1613: vvl by default: TRA/TRC remove optimization associated with linear free surface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/TRA/traadv_qck.F90

    r5866 r5883  
    7878      !!            prevent the appearance of spurious numerical oscillations 
    7979      !! 
    80       !! ** Action : - update (pta) with the now advective tracer trends 
    81       !!             - save the trends  
     80      !! ** Action : - update pta  with the now advective tracer trends 
     81      !!             - send trends to trdtra module for further diagnostcs (l_trdtra=T) 
     82      !!             - htr_adv, str_adv : poleward advective heat and salt transport (ln_diaptr=T) 
    8283      !! 
    8384      !! ** Reference : Leonard (1979, 1991) 
     
    105106      IF( ( cdtype == 'TRA' .AND. l_trdtra ) .OR. ( cdtype == 'TRC' .AND. l_trdtrc ) )   l_trd = .TRUE. 
    106107      ! 
    107       ! I. The horizontal fluxes are computed with the QUICKEST + ULTIMATE scheme 
     108      !        ! horizontal fluxes are computed with the QUICKEST + ULTIMATE scheme 
    108109      CALL tra_adv_qck_i( kt, cdtype, p2dt, pun, ptb, ptn, pta, kjpt )  
    109110      CALL tra_adv_qck_j( kt, cdtype, p2dt, pvn, ptb, ptn, pta, kjpt )  
    110111 
    111       ! II. The vertical fluxes are computed with the 2nd order centered scheme 
     112      !        ! vertical fluxes are computed with the 2nd order centered scheme 
    112113      CALL tra_adv_cen2_k( kt, cdtype, pwn,         ptn, pta, kjpt ) 
    113114      ! 
     
    224225            END DO 
    225226         END DO 
    226          !                                 ! trend diagnostics (contribution of upstream fluxes) 
     227         !                                 ! trend diagnostics 
    227228         IF( l_trd )   CALL trd_tra( kt, cdtype, jn, jptra_xad, zwx, pun, ptn(:,:,:,jn) ) 
    228229         ! 
     
    348349            END DO 
    349350         END DO 
    350          !                                 ! trend diagnostics (contribution of upstream fluxes) 
     351         !                                 ! trend diagnostics 
    351352         IF( l_trd )   CALL trd_tra( kt, cdtype, jn, jptra_yad, zwy, pvn, ptn(:,:,:,jn) ) 
    352353         !                                 ! "Poleward" heat and salt transports (contribution of upstream fluxes) 
     
    381382      CALL wrk_alloc( jpi,jpj,jpk,   zwz ) 
    382383      ! 
    383       !                          ! surface & bottom values  
    384       IF( .NOT.ln_linssh )   zwz(:,:, 1 ) = 0._wp             ! set to zero one for all 
    385                              zwz(:,:,jpk) = 0._wp             ! except at the surface in linear free surface 
     384      zwz(:,:, 1 ) = 0._wp       ! surface & bottom values set to zero for all tracers 
     385      zwz(:,:,jpk) = 0._wp 
    386386      ! 
    387387      !                                                          ! =========== 
     
    403403                  END DO 
    404404               END DO    
    405             ELSE                                   ! no ice-shelf cavities (only ocean surface) 
     405            ELSE                                   ! no ocean cavities (only ocean surface) 
    406406               zwz(:,:,1) = pwn(:,:,1) * ptn(:,:,1,jn) 
    407407            ENDIF 
     
    416416            END DO 
    417417         END DO 
    418          !                                 ! Save the vertical advective trends for diagnostic 
     418         !                                 ! Send trends for diagnostic 
    419419         IF( l_trd )  CALL trd_tra( kt, cdtype, jn, jptra_zad, zwz, pwn, ptn(:,:,:,jn) ) 
    420420         ! 
Note: See TracChangeset for help on using the changeset viewer.