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 14072 for NEMO/trunk/src/OCE/TRA/traadv_cen.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (3 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/TRA/traadv_cen.F90

    r13982 r14072  
    1313   USE dom_oce        ! ocean space and time domain 
    1414   USE eosbn2         ! equation of state 
    15    USE traadv_fct     ! acces to routine interp_4th_cpt  
     15   USE traadv_fct     ! acces to routine interp_4th_cpt 
    1616   USE trd_oce        ! trends: ocean variables 
    17    USE trdtra         ! trends manager: tracers  
     17   USE trdtra         ! trends manager: tracers 
    1818   USE diaptr         ! poleward transport diagnostics 
    1919   USE diaar5         ! AR5 diagnostics 
     
    2828 
    2929   PUBLIC   tra_adv_cen   ! called by traadv.F90 
    30     
     30 
    3131   REAL(wp) ::   r1_6 = 1._wp / 6._wp   ! =1/6 
    3232 
     
    4646 
    4747   SUBROUTINE tra_adv_cen( kt, kit000, cdtype, pU, pV, pW,     & 
    48       &                    Kmm, pt, kjpt, Krhs, kn_cen_h, kn_cen_v )  
     48      &                    Kmm, pt, kjpt, Krhs, kn_cen_h, kn_cen_v ) 
    4949      !!---------------------------------------------------------------------- 
    5050      !!                  ***  ROUTINE tra_adv_cen  *** 
    51       !!                  
     51      !! 
    5252      !! ** Purpose :   Compute the now trend due to the advection of tracers 
    5353      !!      and add it to the general trend of passive tracer equations. 
    5454      !! 
    5555      !! ** Method  :   The advection is evaluated by a 2nd or 4th order scheme 
    56       !!               using now fields (leap-frog scheme).  
     56      !!               using now fields (leap-frog scheme). 
    5757      !!       kn_cen_h = 2  ==>> 2nd order centered scheme on the horizontal 
    5858      !!                = 4  ==>> 4th order    -        -       -      - 
     
    9898      ENDIF 
    9999      ! 
    100       !                     
     100      ! 
    101101      zwz(:,:, 1 ) = 0._wp       ! surface & bottom vertical flux set to zero for all tracers 
    102102      zwz(:,:,jpk) = 0._wp 
     
    155155            IF( ln_isfcav ) THEN                  ! ice-shelf cavities (top of the ocean) 
    156156               DO_2D( 1, 1, 1, 1 ) 
    157                   zwz(ji,jj, mikt(ji,jj) ) = pW(ji,jj,mikt(ji,jj)) * pt(ji,jj,mikt(ji,jj),jn,Kmm)  
     157                  zwz(ji,jj, mikt(ji,jj) ) = pW(ji,jj,mikt(ji,jj)) * pt(ji,jj,mikt(ji,jj),jn,Kmm) 
    158158               END_2D 
    159159            ELSE                                   ! no ice-shelf cavities (only ocean surface) 
     
    163163            ENDIF 
    164164         ENDIF 
    165          !                
     165         ! 
    166166         DO_3D( 0, 0, 0, 0, 1, jpkm1 )   !--  Divergence of advective fluxes  --! 
    167167            pt(ji,jj,jk,jn,Krhs) = pt(ji,jj,jk,jn,Krhs)    & 
     
    185185      ! 
    186186   END SUBROUTINE tra_adv_cen 
    187     
     187 
    188188   !!====================================================================== 
    189189END MODULE traadv_cen 
Note: See TracChangeset for help on using the changeset viewer.