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 5831 for branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfevd.F90 – NEMO

Ignore:
Timestamp:
2015-10-25T11:33:18+01:00 (9 years ago)
Author:
gm
Message:

#1593: Simplification LDF-ADV: remove the remaining use of ua,va,ta,sa as workspace: concern trazdf_imp, zdfevd, zdftmx and oce_trc modules

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5721_CNRS9_NOC3_LDF/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfevd.F90

    r5758 r5831  
    1111 
    1212   !!---------------------------------------------------------------------- 
    13    !!   zdf_evd      : increase the momentum and tracer Kz at the location of 
    14    !!                  statically unstable portion of the water column (ln_zdfevd=T) 
     13   !!   zdf_evd       : increase the momentum and tracer Kz at the location of 
     14   !!                   statically unstable portion of the water column (ln_zdfevd=T) 
    1515   !!---------------------------------------------------------------------- 
    1616   USE oce             ! ocean dynamics and tracers variables 
    1717   USE dom_oce         ! ocean space and time domain variables 
    1818   USE zdf_oce         ! ocean vertical physics variables 
     19   ! 
    1920   USE in_out_manager  ! I/O manager 
    2021   USE iom             ! for iom_put 
    2122   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
     23   USE wrk_nemo        ! work arrays 
    2224   USE timing          ! Timing 
    2325 
     
    5153      !! References :   Lazar, A., these de l'universite Paris VI, France, 1997 
    5254      !!---------------------------------------------------------------------- 
    53       USE oce,   zavt_evd => ua , zavm_evd => va  ! (ua,va) used ua workspace 
    54       ! 
    5555      INTEGER, INTENT( in ) ::   kt   ! ocean time-step indexocean time step 
    5656      ! 
    5757      INTEGER ::   ji, jj, jk   ! dummy loop indices 
     58      REAL(wp), POINTER, DIMENSION(:,:,:) ::   zavt_evd, zavm_evd 
    5859      !!---------------------------------------------------------------------- 
    5960      ! 
     
    6667         IF(lwp) WRITE(numout,*) 
    6768      ENDIF 
    68  
     69      ! 
     70      CALL wrk_alloc( jpi,jpj,jpk,   zavt_evd, zavm_evd )  
     71      ! 
    6972      zavt_evd(:,:,:) = avt(:,:,:)           ! set avt prior to evd application 
    70  
     73      ! 
    7174      SELECT CASE ( nn_evdm ) 
    7275      ! 
     
    111114      CALL iom_put( "avt_evd", zavt_evd )              ! output this change 
    112115      ! 
     116      CALL wrk_dealloc( jpi,jpj,jpk,   zavt_evd, zavm_evd )  
     117      ! 
    113118      IF( nn_timing == 1 )  CALL timing_stop('zdf_evd') 
    114119      ! 
Note: See TracChangeset for help on using the changeset viewer.